mount command pid
Posted
by lakshmipathi
on Stack Overflow
See other posts from Stack Overflow
or by lakshmipathi
Published on 2010-04-14T06:08:21Z
Indexed on
2010/04/14
6:13 UTC
Read the original article
Hit count: 256
Trying to mount a device and get the pid of mount command.
cmd="/bin/mount /dev/sda1 /mnt"
os.system(cmd)
Now how to obtain the pid of mount command? There plenty of mounted device available on my system ,something like ps | grep mount won't work.
© Stack Overflow or respective owner