Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 04-24-2007, 10:25 PM   #1
Registered: May 2006
Distribution: Slackware & MyLFScratch
Posts: 37

Rep: Reputation: 15
Question Quick question on curl and tar

I sometimes do this;
curl | (tar -xjvf -)
Does that corrupt the source code or do anything "bad" ?
After that, I cd into the "foo-bar" folder and do this again (if there is a patch);
curl | (patch -Np1 -i -)
So far this hasn't brought up any errors while compiling. Is this ok?

Old 04-24-2007, 10:28 PM   #2
HCL Maintainer
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,450

Rep: Reputation: 76
Why would it do anything “bad”? Looks perfectly healthy to me. You might want to store as a temporary file and do an integrity check, however.
Old 04-24-2007, 10:38 PM   #3
Registered: May 2006
Distribution: Slackware & MyLFScratch
Posts: 37

Original Poster
Rep: Reputation: 15
thanks for the speedy reply. Just did a quick check of a directory using my method against the one from the source tarball and "diff -Naur" finds no differences. Thanks!


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick question about tar (backup) with same file extension nguyendh Linux - General 6 04-16-2007 11:26 AM
quick tar question neocontrol Linux - Software 1 07-10-2006 01:03 PM
cURL script question verbatim Programming 8 05-18-2005 05:50 PM
Quick guide on tar bograt Linux - Newbie 11 01-27-2005 06:15 PM
Quick question about tar phil1076 Linux - General 5 02-05-2002 02:12 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration