The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 12-26-2006
splax splax is offline
Registered User
  
 

Join Date: Dec 2006
Posts: 5
even though the script is not reading the password from file, which is good, it is prompting for a password. So we got rid of that file (needs to enter the password).

Now, the remaining tasks are after sudo and loging with password, I need to run some commands in the sudo environment and after successful completion of these commands I have to logout and do sudo to a different account and then do the same.

Is there a way to run some commands in this sudo environment and capture the output check the status of these commands.??

please help.