|
Re: problems faced while using ssh: msg#00021network.openssh.general
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. |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | transferring file in binary mode: 00021, kknegi |
|---|---|
| Next by Date: | Re: transferring file in binary mode: 00021, Jeremy C. Reed |
| Previous by Thread: | Re: problems faced while using sshi: 00021, jalburger |
| Next by Thread: | transferring file in binary mode: 00021, kknegi |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |