John,<div><br></div><div><br></div><div>I think so, but try it. write the script with a sudo, and then a line afterwards  &quot;touch /tmp/myfile&quot;. See who owns /tmp/myfile.</div><div><br></div><div>Leam<br><br><div class="gmail_quote">
On Thu, Jan 26, 2012 at 9:53 AM, John Pilman <span dir="ltr">&lt;<a href="mailto:jcpilman@gmail.com">jcpilman@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Gentle Folk<br>
<br>
I have a bash script I often run which requires root access, so I<br>
precede the command with sudo.  It looks like this:<br>
<br>
sudo bin/mount_some_network_folders<br>
<br>
After that, I usually run a command that does not require root access.<br>
It looks like this:<br>
<br>
idle bin/ascript.py<br>
<br>
So I thought, why not append that command to the end of my script and<br>
save a score of keystrokes.  My question is, can I return back from<br>
the sudo while inside the bash script before executing that last line?<br>
<br>
...John<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><a href="http://leamhall.blogspot.com/" target="_blank">Mind on a Mission</a></div><br>
</div>