Ssh executes bash script with ksh because of user default shell which I cant modify?

Up vote 0 down vote favorite share g+ share fb share tw.

Bash ssh link|improve this question asked Feb 4 '10 at 9:00soField439721 53% accept rate.

Make this the first line of your script: #! /usr/bin/env bash Edit: As per this, the utility of /usr/bin/env is dubious. So, you probably want: #!

/bin/bash Replace /bin/bash with the actual path of bash executable.

I added this line then it doesn't execute script :S – soField Feb 4 '10 at 9:13 @soField: Try with my edit, or try tangens method. You must make sure bash is installed on the server. – Alok Feb 4 '10 at 9:17 so it would be ssh user@host /bin/bash command.

Sh? Is it ok – soField Feb 4 '10 at 9:19 Do you know where bash is installed on the server? As tangens said, it would be ssh user@host bash command.sh.

If you want to use my method, you need to make the first line #! , where you replace by the actual bash executable's full path: it could be /bin/bash, /usr/bin/bash, or something else. – Alok Feb 4 '10 at 9:29 I think the problem is my command has " character , it may cause a problem is there any way to execute command with ssh which contains " chars in it – soField Feb 4 '10 at 13:02.

You can call your script explicitly with bash: ssh bash This way there will be a ksh executed at login, but inside ksh you start a bash executing your script.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions