![]() |
|
|
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 |
| Regarding changing shell thru script | sdosanjh | Shell Programming and Scripting | 4 | 01-12-2009 11:24 AM |
| Changing value of a variable inside a shell script | kshyju | Shell Programming and Scripting | 1 | 12-12-2008 05:06 AM |
| How to run cmds after changing to a new env (shell) in a shell script | charlei | Shell Programming and Scripting | 6 | 10-14-2008 04:18 PM |
| changing shell type from sh to ksh | venhart | UNIX for Advanced & Expert Users | 10 | 09-05-2008 01:03 PM |
| Changing a CSV file in Korn shell | riteshm | Shell Programming and Scripting | 2 | 02-27-2006 08:54 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
changing shell while using ssh
Hello, I am trying to ssh to a remote machine then change the shell and execute the script. However the ssh session hangs when i try to change the shell Code:
ssh user@host 'csh ; source /home/cshProfile; $HOME/exec.sh' if i do Code:
ssh user@host ' $HOME/exec.sh' This works however i get errors as some of the env variables are in cshProfile file which is for cshell and the default shell of the remote user is ksh. so i have to first changet to csh on the remote machine, source the profile and execute the script. Any advices? |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|