10-18-2008
how to run a script when pen drive is inserted
Hi,
I need to run a script whenever a pen drive is connected to my ubuntu machine. The script is to be run from local disk and with privileges of current user. How do I achieve this?
Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
I need information or tooling for using my USB pen drive (DANE-ELEC) in a unix environment.
Until now I only get the "format window" in the unix machine but after giving OK for running the format, it never stops and I have to stop it manually.
Seems that what I need is format my... (0 Replies)
Discussion started by: Argento73
0 Replies
2. Debian
hello,
I want to install minimal linux on 128MB pen drive.
distro is debian.
what all should i need? (2 Replies)
Discussion started by: yogesh_powar
2 Replies
3. BSD
Hi there,
I am using freebsd 7.0 and I am facing a lot of issues with it. The cd installed fine. I opted for the gnome desktop and tht too installed (though the refresh rates were wrong and the resloution got messed up). After some configurations the desktop was working fine.
Then came the... (5 Replies)
Discussion started by: jedidiah
5 Replies
4. Filesystems, Disks and Memory
Hi Guys,
I have an external USB Hard Disk Drive on which I have 3 partitions and it works fine under Windows XP but when I am using Red Hat Linux 5 I don't see any icon for this USB HDD. Also I am not able to browse my USB Pen Drive. However, I can use it under Mandrake Linux without any... (4 Replies)
Discussion started by: indiansoil
4 Replies
5. Linux
can any body tell simple steps to install linux from pen drive (4gb) fat32 ( with out dvd rom ) (3 Replies)
Discussion started by: seshumohan
3 Replies
6. SCO
Does anybody know the commands to access the data from a pen drive in a SCO Openserver 6.
What are the parameters to the mount command for accessing the USB port:confused: (9 Replies)
Discussion started by: jksah
9 Replies
7. Linux
Hello Friends,
My pendrive (FAT32 filesystem) consist of following files+viruses.
-rwxr-xr-x 1 chinmay root 0 2010-03-10 01:29 autorun.inf
dr-xr-xr-x 2 chinmay root 4096 2010-03-09 23:51 Docs
-rwxr-xr-x 1 chinmay root 4726162 2010-03-08 15:02 java_ee_sdk-5_03-javadocs.zip... (4 Replies)
Discussion started by: catchchinu1
4 Replies
8. Red Hat
Anyone can plz tell me how to make pendrive bootable.unetbootin dont have option for red hat (0 Replies)
Discussion started by: shamapraveen
0 Replies
9. Solaris
Hello Gurus!!
Very recently i tried to mount a USB pen drive onto my solaris 10 (X4170 model) server. As i understand, in ideal scenarios it should get mounted automatically, but it did not happen. Neither anything is shown in "iostat -En" output or "rmformat -l" about the pen drive.
I also... (10 Replies)
Discussion started by: EmbedUX
10 Replies
10. Solaris
Hiii,
Please let me know the steps for mounting my USB pendrive in solaris 10 platform.
Thanks & Regards,
Bhargav P (5 Replies)
Discussion started by: bhargav90
5 Replies
LEARN ABOUT LINUX
service
service(8) System Manager's Manual service(8)
NAME
service - run a System V init script
SYNOPSIS
service SCRIPT COMMAND [OPTIONS]
service --status-all
service --help | -h | --version
DESCRIPTION
service runs a System V init script in as predictable environment as possible, removing most environment variables and with current working
directory set to /.
The SCRIPT parameter specifies a System V init script, located in /etc/init.d/SCRIPT. The supported values of COMMAND depend on the
invoked script, service passes COMMAND and OPTIONS it to the init script unmodified. All scripts should support at least the start and
stop commands. As a special case, if COMMAND is --full-restart, the script is run twice, first with the stop command, then with the start
command.
service --status-all runs all init scripts, in alphabetical order, with the status command.
EXIT CODES
service calls the init script and returns the status returned by it.
FILES
/etc/init.d
The directory containing System V init scripts.
ENVIRONMENT
LANG, TERM
The only environment variables passed to the init scripts.
SEE ALSO
/etc/init.d/skeleton,
update-rc.d(8),
init(8),
invoke-rc.d(8).
Jan 2006 service(8)