ksh not found on remote server


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting ksh not found on remote server
# 1  
Old 11-09-2010
ksh not found on remote server

Hi guys,

I need to run batch jobs on a remote machine. I have been able to make a connection with a user2 login details via ssh, and have tested that I am in the correct directory etc. Problem is that when I try to run the batch job, I keep getting a ksh <batchjobname> not found. If doing it manually on the remote machine with the user2 details its fine, but when I ssh from another machine it doesnt seem to find the batch....

Is there a possiblity that the user1 that I am logged in as on machine one doesnt have the correct privileges in order to run the batch?? Its the only thing that i can think of after having explored all else.

If any one has had a similar problem your help would be much appreciated!!

Cheers
# 2  
Old 11-09-2010
give a relative or an absolute path to your 'batchjobname' file - your ssh connection's PATH probably doesn't include '.'
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script connect to remote server, not find files and exit only from remote server, but not from scrip

I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code TARFILE=${NAME}.tar TARGZFILE=${NAME}.tar.gz ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies

2. Shell Programming and Scripting

Sudo connect to a remote server and execute scripts in remote server

Hello Every one!! I am trying to write a shell script which will connect to a remote server and execute scripts which are at a certain path in the remote server. Before this I am using a sudo command to change the user. The place where I am stuck is, I am able to connect to the... (6 Replies)
Discussion started by: masubram
6 Replies

3. UNIX for Dummies Questions & Answers

Executing ksh script to remote server want output on same window

I'm having a brain freeze moment. I've created a ksh script in AIX that ssh's to a remote server, executes some commands, and then logs out. All of this is sent to a file. I then have the script cat the file so i can see the output. Even though the cat command is outside of the remote session part;... (5 Replies)
Discussion started by: seekryts15
5 Replies

4. Shell Programming and Scripting

ksh script with Interactive ssh on remote server

HI Unix Gurus, I an stuck in an interesting issue, where I am trying to execute a script on remote server after ssh. The script on remote server is interactive,. Whenever it is called it hangs where it expects input from terminal and I have to terminate it. I have searched through fourm... (12 Replies)
Discussion started by: Jeevanm
12 Replies

5. Shell Programming and Scripting

ksh:not found

Hi, i used to run oracle queries in unix and then transfer the result in to csv files. it was working fine for a month.but today it showed an error like ksh>dimens_minus_scpt.sh not found. Can someone please help. Thanks. :wall: (4 Replies)
Discussion started by: varadharajan87
4 Replies

6. Programming

SFTP from one remote server to another remote server from desktop

Hi, I have 1. lappy 2. server A 3. server B Now, what i need is to run a command from lappy that will sftp a file from server A to server B. Please guide me to achieve this. -akash (1 Reply)
Discussion started by: akash.mahakode
1 Replies

7. Shell Programming and Scripting

ksh ./sort.sh: not found

I've a simple .sh file: #!/bin/ksh sort -t: -k 1.13,1.13 -k 1.16,1.29 sort.txt > output.txt When i try to run this sort.sh file ./sort.sh it gives me the error: ksh: ./sort.sh: not found I've tried the following: 1) echo $SHELL /bin/ksh 2) echo $PATH... (4 Replies)
Discussion started by: kajal_ind
4 Replies

8. UNIX for Dummies Questions & Answers

ksh not found in solaris

Hi , I am new to solaris world but worked in unix for a while . I have this solaris box version 8 .I am trying to run a simple unix file . Q.shl cat Q.shl #!/bin/ksh db2 get connection state When I run the file I get following error : Q.shl ksh: Q.shl: not found This is... (6 Replies)
Discussion started by: capri_drm
6 Replies

9. Shell Programming and Scripting

automatic ssh into remote server using ksh

I still have to enter the password when I want to auto login w/o having to do any command line entry. This code works but I don't want to have to enter the password at the command line. After manning ssh I still am not sure what settings I need to change. Please help. Thanks! <<<output>>>... (4 Replies)
Discussion started by: tekline
4 Replies

10. Programming

ksh: make: not found

$ make ksh: make: not found Hello, when i use the "make" command in Solaris, it says the "make" command is not found! Any help appreciated! BobK (3 Replies)
Discussion started by: bobk544
3 Replies
Login or Register to Ask a Question