LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 08-16-2003, 11:13 AM   #1
G-Fox
Member
 
Registered: Jul 2003
Location: Lithuania
Posts: 45

Rep: Reputation: 15
Unhappy 2>/dev/null && {...} need explanation


Hi everybody who read this message. I am beginer and I need a little help...

ifconfig eth1 up 2>/dev/null && {...

please explain this 2>/dev/null && {...

thanks
 
Old 08-16-2003, 12:10 PM   #2
tchernobog
Member
 
Registered: Aug 2003
Distribution: Latest Gentoo; Mandrake 9.1
Posts: 37

Rep: Reputation: 15
"2>" redirects standard error messages to an output.
You can think it as the normal redirection.

/dev/null means you're redirecting your error messages to "trash". See http://linux.oreillynet.com/pub/a/linux/lpt/13_14.html for further info.

Then, "&&" says to wait for the first part of the command to complete before starting what comes after "&&".
 
Old 08-16-2003, 12:31 PM   #3
G-Fox
Member
 
Registered: Jul 2003
Location: Lithuania
Posts: 45

Original Poster
Rep: Reputation: 15
Thank you tchernobog for help
 
  


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
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
Segmentation fault on toplevel = XtVaAppInitialize(&app, "Email", NULL, 0, &argc, cbranje Programming 0 02-19-2005 12:06 PM
Creating a printer, but sending to a script & /dev/null, how to? cougar694u Linux - Software 1 09-24-2004 01:38 PM
> /dev/null 2>&1 blackzone Linux - Newbie 2 09-20-2004 04:10 AM
> /dev/null 2>&1 Sammy2ooo Linux - Software 2 07-16-2003 09:20 AM


All times are GMT -5. The time now is 03:27 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration