|
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
|