Results 1 to 2 of 2

Thread: crontab problem

  1. #1
    Join Date
    May 2003
    Posts
    58

    Unanswered: 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?

  2. #2
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •