Powered by Invision Power Board


  Reply to this topicStart new topicStart Poll

> SSH access problem, Cant access other scripts when using ssh
sharte
Posted: May 17 2005, 02:56 PM
Quote Post


Newbie
*

Group: Members
Posts: 3
Member No.: 797
Joined: 7-February 05



I can access a script on a remote machine fine using ssh:
$ssh shb@mach2 . ./testScript.sh

The problem is it can't access any other scripts which are called from the script (testScript.sh) originally accessed on the remote machine using ssh.

example: extract from "testScript.sh":

#!/bin/ksh
if [ "x$DMA_HOME" = "x" ]; then
. configs/vars.sh

The ERROR I get: ksh: configs/vars.sh: not found
Make any sense? Any help would be much appreciated.
Regards,
Sean
PMEmail Poster
Top
andyb1ack
Posted: May 20 2005, 09:46 AM
Quote Post


User Level: 4
****

Group: Members
Posts: 98
Member No.: 513
Joined: 9-September 04



Where does configs/vars.sh reside?

Try putting the full path to this script in testScript.sh, or setting the PATH at the start of testScript.sh
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Shells & Scripting | Next Newest »

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.3093 ]   [ 12 queries used ]   [ GZIP Enabled ]




Partners: Cambridge Plus :: <Link Available> :: 3D Mechanical Design :: <Link Available>
Unix Man Pages / Linux Man Pages :: HiFi Forum :: SIP VoIP Phone & Provider Reviews :: UNIX/Linux Forum Archives

More info on advertising on Unix/Linux Forum