由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - u盘的自动sync?
相关主题
请教如何更改启动时的默认目录?怎么搞个简单的虚拟机?
CentOS 5上跑2.6.31kernel的问题usb auto mount?
linux都发展到现在了还有这么弱智的bugubuntu下怎么sync and backup files ?
请总结一下:如何实现自启动 autostart?Evolution太他妈的慢了。
Ubuntu: how to turn off start-up program?debian分区问题,非常严重!
gnome下面如何该一类文件的icon?请帮忙看看为什么没空间了?
php readfile不能读取其他目录?VFS: Unable to mount root fs via NFS, trying floppy.
为啥一下子,cifs mount不能运行任何程序了。usb文件的mount权限问题
相关话题的讨论汇总
话题: autostart话题: autorun话题: medium话题: sync话题: file
进入Linux版参与讨论
1 (共1页)
a*******e
发帖数: 3021
1
有没有啥软件能做u盘的自动sync?
就是说,每次接上u盘,系统就自动吧u盘的内容跟系统的某个目录sync?
a*******e
发帖数: 3021
2
I think I figured it out.
In short: place .autorun, autorun, or autorun.sh on root dir of usb drive,
it will be autostarted after mount in GNOME.
The first line in autorun.sh has to be #!/bin/bash to avoid "EXEC format
error".
any sync scripts can be included in the autorun.
====================================================
Autostart Of Applications After Mount
When a desktop environment mounts a new medium, the medium may contain an
Autostart file that can suggest to start an application or an Autoopen file
that can suggest to open a specific file located on the medium.
Autostart Files
When a new medium is mounted the root directory of the medium should be
checked for the following Autostart files in order of precendence: .autorun,
autorun, autorun.sh Only the first file that is present should be considered.
The desktop environment MAY ignore Autostart files altogether based on
policy
set by the user, system administrator or vendor.
The desktop environment MUST prompt the user for confirmation before
automatically starting an application.
When an Autostart file has been detected and the user has confirmed its
execution the autostart file MUST be executed with the current working
directory (CWD) set to the root directory of the medium.

【在 a*******e 的大作中提到】
: 有没有啥软件能做u盘的自动sync?
: 就是说,每次接上u盘,系统就自动吧u盘的内容跟系统的某个目录sync?

1 (共1页)
进入Linux版参与讨论
相关主题
usb文件的mount权限问题Ubuntu: how to turn off start-up program?
A simple Bash question about changing directorygnome下面如何该一类文件的icon?
Autologinphp readfile不能读取其他目录?
Kubuntu ibus终于搞定了为啥一下子,cifs mount不能运行任何程序了。
请教如何更改启动时的默认目录?怎么搞个简单的虚拟机?
CentOS 5上跑2.6.31kernel的问题usb auto mount?
linux都发展到现在了还有这么弱智的bugubuntu下怎么sync and backup files ?
请总结一下:如何实现自启动 autostart?Evolution太他妈的慢了。
相关话题的讨论汇总
话题: autostart话题: autorun话题: medium话题: sync话题: file