On Tue, Dec 12, 2006 at 10:10:43PM -0800, kknegi wrote:
> C:\>ssh [EMAIL PROTECTED] /home/shadm/shcalc/DateProject/test.sh >
> test1.log

What does this script look like?

> grep: can't open rates.rel

You realize that the script will be executed with its working directory
set to shadm's $HOME, correct?

> expr: Syntax error

Most likely, you forgot to quote something properly.  In general, I
abhor the use of expr(1) in shell scripts.  Its only real purpose is
in writing legacy (pre-POSIX, pre-ksh) Bourne shell scripts.  There
are shell builtins that can do almost everything expr does, but faster
and cleaner.

> grep: can't open canada_exchange_rate.txt
> grep: can't open month_midmonth_release.txt
> sed: Cannot find or open file month_midmonth_release.txt.

I think the fact that you're sitting in $HOME instead of wherever you
expected to be is the most likely candidate for all three of these.

> Is there something to do with SSH permissions????

Sounds more like you need a few pointers in writing shell scripts.

Reply via email to