Search Results

Search: Posts Made By: mohanm
1,248
Posted By mohanm
try echo $SHELL also check whether the...
try
echo $SHELL

also check whether the SHELL environment variable is properly set in the .profile file in your home directory

same for the HOME environment variable also. This also should be...
10,459
Posted By mohanm
you can use ssh to directly run commands on...
you can use ssh to directly run commands on remote server like this

ssh root@remote_host "/tmp/script.sh"

This will prompt you for password, unless you have copied your local user's public key...
10,459
Posted By mohanm
try using here document in shell script to...
try using here document in shell script to achieve your requirement

ssh srom@$a << EOF
password
/usr/local/bin/sudo su -
Scripts_you_to_run
exit
EOF
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy