LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


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

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


I sometimes do this;
Code:
curl http://downloads.sourceforge.net/foo-bar.tar.bz2 | (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);
Code:
curl ftp://some-ftp.net/foobar/foo-bar-fixes-123.patch | (patch -Np1 -i -)
So far this hasn't brought up any errors while compiling. Is this ok?

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

Rep: Reputation: 78
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, 09:38 PM   #3
hbinded
Member
 
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!
 
  


Reply



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 10:26 AM
quick tar question neocontrol Linux - Software 1 07-10-2006 12:03 PM
cURL script question verbatim Programming 8 05-18-2005 04:50 PM
Quick guide on tar bograt Linux - Newbie 11 01-27-2005 05:15 PM
Quick question about tar phil1076 Linux - General 5 02-05-2002 01:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:14 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
Open Source Consulting | Domain Registration