The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 09-10-2007
aubtc aubtc is offline
Registered User
 

Join Date: Sep 2007
Posts: 6
Execute internal script as different user

I have a script that I must run as user X and need to send the results to a different server as user Y (sftp). User Y has been set up to not require password authentication between the 2 servers. I would prefer to keep these in a single script, as our operations might have to run it from time to time and I would prefer to keep things simple.

Another thought was to have 2 scripts that poled a status file to see "whose" turn it was to execute.

Any suggestions?

Thanks
Reply With Quote
Remove advertisements
!!
Forum Sponsor