[ale] to sudo or not to sudo

John Pilman jcpilman at gmail.com
Thu Jan 26 09:53:03 EST 2012


Gentle Folk

I have a bash script I often run which requires root access, so I
precede the command with sudo.  It looks like this:

sudo bin/mount_some_network_folders

After that, I usually run a command that does not require root access.
It looks like this:

idle bin/ascript.py

So I thought, why not append that command to the end of my script and
save a score of keystrokes.  My question is, can I return back from
the sudo while inside the bash script before executing that last line?

...John


More information about the Ale mailing list