Simple Linux Script

Networking/Security Forums -> UNIX // GNU/Linux

Author: duster PostPosted: Wed May 27, 2009 2:44 pm    Post subject: Simple Linux Script
Im having an issue getting a script to run in my linux box. this is what i have done so far.

Ive created a simple script. echo "hello world" save it as hello ,chmod 755 . when i run the ./hello the script runs fine. so i want this script to run every one minute on the box so this is my entry in my crontab file...

01 * * * * root /home/myscripts/hello

for some reason this isnt working im log in as root. any ideas? im new to scripting. Im getting an email to root saying "environment variable not set"

Author: BluePass PostPosted: Thu May 28, 2009 6:00 am    Post subject:
Try with:

01 * * * * root /bin/sh /home/myscripts/hello


01 * * * * root /bin/bash /home/myscripts/hello

Networking/Security Forums -> UNIX // GNU/Linux

output generated using printer-friendly topic mod, All times are GMT + 2 Hours

Page 1 of 1

Powered by phpBB 2.0.x © 2001 phpBB Group