On 2007-06-28, L.V.Gandhi <[EMAIL PROTECTED]> wrote:
> the same lines if I run in command line, works without problem as desired.
> Any suggestions why lines in script is not working?
>

First, determine what shell you are running:

echo $SHELL

Then, make sure that program gets put into the first line of your
script. So, in my case, I get:

tyler:~-> echo $SHELL
/bin/bash

which means that I should have:
#!/bin/bash

as the first line of my shell scripts.

As long as you pass the script to the same shell that you are running
in your terminal, any command that works from the CL should work the
same in a script.

HTH,

Tyler


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to