Jump to content


New Members
  • Content Count

  • Joined

  • Last visited

About navyasri

  • Rank
    New Member
  1. I wrote a linux shell script course that ping once an IP address and echoes the results of the ping with the addition of the date command. If I run the script by my self it works just fine and I can also save the script's results to a file with the >> operator like this: script.sh >> log_file. The problem starts when I scheduling it in the crontab editor then only the date command result is saved to a file without the ping result. my script is: #!/bin/zsh echo $(date +"%T %D") ping -c1 google.com | while read replay do echo $replay done and the corn job is: * * * * * ~/new_scrip.sh >> /tmp/plog
  • Create New...