• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Search | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

Simple Linux Script

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux

View previous topic :: View next topic  
Author Message
duster
Just Arrived
Just Arrived


Joined: 06 May 2005
Posts: 0


Offline

PostPosted: Wed May 27, 2009 2:44 pm    Post subject: Simple Linux Script Reply with quote

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"
Back to top
View user's profile Send private message
BluePass
Just Arrived
Just Arrived


Joined: 23 Mar 2008
Posts: 0


Offline

PostPosted: Thu May 28, 2009 6:00 am    Post subject: Reply with quote

Try with:

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

or:

01 * * * * root /bin/bash /home/myscripts/hello
Back to top
View user's profile Send private message
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> UNIX // GNU/Linux All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Community Area

Log in | Register