Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 01-25-2005, 10:45 AM   #1
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, 10:56 AM   #2
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...

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

Rep: Reputation: 47


1: Read 'how to ask questions the smart way' (
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,



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 09:55 AM
Bash scriptting related Menestrel Linux - Newbie 2 05-22-2004 08:22 PM
bash related question MattSmith Linux - General 1 01-20-2004 06:41 AM
WEBCAM related question aznowicz Linux - Software 2 08-18-2002 01:36 PM
question - DNS related rewt Linux - General 2 09-14-2001 11:19 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:31 PM.

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