Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > curl in the background

curl in the background
Thread Tools
bmedina
Mac Elite
Join Date: Jan 2000
Location: Seattle, WA, King
Status: Offline
Reply With Quote
Jul 1, 2002, 01:01 AM
 
If I send curl to the background to free up my terminal window while it downloads something, its update/status text still refreshes in the window as if I never sent it to the background. Does anyone know how to send curl (or wget) to the background and keep its status text from refreshing?
     
Lordie
Fresh-Faced Recruit
Join Date: May 2001
Status: Offline
Reply With Quote
Jul 1, 2002, 01:38 AM
 
use the silent option for curl: curl -s
or use the quiet option for wget: wget -q

That help?
     
P
Moderator
Join Date: Apr 2000
Location: Gothenburg, Sweden
Status: Offline
Reply With Quote
Jul 1, 2002, 06:57 AM
 
Or you just do it hard-core UNIX way: add

"> /dev/null"

without quotes to the end. Shuts up any program...
The new Mac Pro has up to 30 MB of cache inside the processor itself. That's more than the HD in my first Mac. Somehow I'm still running out of space.
     
bmedina  (op)
Mac Elite
Join Date: Jan 2000
Location: Seattle, WA, King
Status: Offline
Reply With Quote
Jul 2, 2002, 08:33 PM
 
That does indeed help. Thanks!
     
Lordie
Fresh-Faced Recruit
Join Date: May 2001
Status: Offline
Reply With Quote
Jul 2, 2002, 09:59 PM
 
</font><blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">quote:</font><hr /><font size="1" face="Geneva, Verdana, Arial, sans-serif">Originally posted by P:
<strong>Or you just do it hard-core UNIX way: add

"&gt; /dev/null"

without quotes to the end. Shuts up any program...</strong></font><hr /></blockquote><font size="1" face="Geneva, Verdana, Arial, sans-serif">That will only shut up stdout. You also have to take care of stderr:

#&gt; ./programname &gt; /dev/null 2&gt;&1 &

Otherwise, your shell could still get cluttered with error messages.
     
   
 
Forum Links
Forum 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 On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 11:31 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,