![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to execute a script hosted on a machine from a different machine | harneetmakol | Shell Programming and Scripting | 2 | 08-11-2008 08:47 AM |
| Execute command from terminal on remote machine | Ranu | Shell Programming and Scripting | 0 | 10-09-2007 04:13 AM |
| change files permission on Remote machine | almeisan1 | Shell Programming and Scripting | 1 | 10-05-2006 12:03 PM |
| how to execute a script on remote machine | balireddy_77 | Shell Programming and Scripting | 4 | 09-27-2006 07:45 PM |
| Need Script to check whether user exists in the remote machine | Srini75 | SCO | 1 | 09-07-2005 11:23 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Change user on remote machine and execute script!
Hi,
I need to login into remote server and execute a shell script over there. As of now i am making use of ssh command ssh primUser@135.254.242.2 sh /poll.sh I am logging in as primUser but unless i change the user to root the script execution on the remote machine is not possible. Is there a way wherein i can make use of perl script or anything like that and remotely change the user to root? ssh primUser@135.254.242.2 su - The above command is giving me a 'su - Sorry' message. Can anybody help me to change the login to root on remote machine and execute the script poll.sh on it? |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|