LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-25-2005, 09:45 AM   #1
Menestrel
Member
 
Registered: Oct 2003
Location: Bucharest
Distribution: Debian Sarge, Slackware Current, Ubuntu
Posts: 183

Rep: Reputation: 30
bash related question


Hello, I'm trying to understand a cron job in Slackware 10.

There is a line like:
47 * * * * /usr/bin/run-parts /etc/cron.hourly 1>/dev/null

I don't understand what that 1 stands for.... Can anybody help a newbie ?
 
Old 01-25-2005, 09:56 AM   #2
atom
Member
 
Registered: Feb 2004
Location: Slovenia
Distribution: archlinux
Posts: 271

Rep: Reputation: 31
/usr/bin/run-parts is the command that is run
/etc/cron.hourly is it's commandline argument.
1>/dev/null is the redirection of the program's stdout (the normal, non-error output) to /dev/null. Had it been 2> it would have ment the redirection of the program's error (stderr) output to /dev/null. Had it been &> it would have ment both, the stdout and stderr.

Hope this sheds some light on the matter...

Gasper
 
Old 01-25-2005, 10:03 AM   #3
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
yes!

Hi.

1: Read 'how to ask questions the smart way' (http://www.catb.org/~esr/faqs/smart-questions.html).
2: stw and rtm; if you don't know what these tlas mean, goto 1; if you don't know what tla means, stw.

hope this helps,

Jonas
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
c related question. blackzone Programming 1 07-24-2004 08:55 AM
Bash scriptting related Menestrel Linux - Newbie 2 05-22-2004 07:22 PM
bash related question MattSmith Linux - General 1 01-20-2004 05:41 AM
WEBCAM related question aznowicz Linux - Software 2 08-18-2002 12:36 PM
question - DNS related rewt Linux - General 2 09-14-2001 10:19 PM


All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration