If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Unix Shell Scripts > crontab problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-09-04, 15:24
chatguy2020 chatguy2020 is offline
Registered User
 
Join Date: May 2003
Posts: 58
crontab problem

I have a script that does ssh connection to a remote server and runs well. I put the same script in cron. It doesn't seem to connect to the remote server. The script runs displaying all but the remote command output. I am using user crontab from my user login. Any ideas why the script is running at prompt and not from cron?
Reply With Quote
  #2 (permalink)  
Old 06-10-04, 03:02
iaguigon iaguigon is offline
Registered User
 
Join Date: May 2004
Location: Barcelona, Spain
Posts: 54
Quote:
Originally Posted by chatguy2020
I have a script that does ssh connection to a remote server and runs well. I put the same script in cron. It doesn't seem to connect to the remote server. The script runs displaying all but the remote command output. I am using user crontab from my user login. Any ideas why the script is running at prompt and not from cron?
One idea:
Are you relaying on some environment variable definition that is not defined in the script itself? You will run it from command line because of your user environment, but cron scripts will not have that.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On