Re: problems faced while using ssh
- From: Greg Wooledge <wooledg@xxxxxxxxxxx>
- Date: Thu, 14 Dec 2006 07:29:35 -0500
On Tue, Dec 12, 2006 at 10:10:43PM -0800, kknegi wrote:
C:\>ssh shadm@xxxxxxxxxxxxxxxxxxx /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.
- References:
- problems faced while using ssh
- From: kknegi
- problems faced while using ssh
- Prev by Date: transferring file in binary mode
- Next by Date: Re: transferring file in binary mode
- Previous by thread: Re: problems faced while using ssh
- Next by thread: transferring file in binary mode
- Index(es):
Relevant Pages
|
|