Re: OS X and tar
Scott Haneda <[email protected]>
| Newsgroups | gmane.comp.audio.netjuke.user |
|---|---|
| Message-ID | <BAA4147F.2A055%[email protected]> |
on 03/24/2003 12:58 AM, Florian Maul at [email protected] wrote: > Hello Scott, > >> Has anyone got tar downloading to work under OS X? All I can get it >> to do is create a zero byte file > Unfortunately, the commandline which is used to run tar in netjuke > 1.0b17 is apparently not very system independent - that might lead to > problems on OS X. Here is how we fixed that problem on freebsd > earlier: > >> With a little help from one of the users on this list I am able to >> see what the problem is but can't fix it. It seems FreeBSD might use >> a different command line of tar. A man tar tells me that the default >> device for the tar command is a tape drive /dev/sa0 > Right, apparently the freebsd tar uses /dev/sa0 as default output > device unlike the linux tar (GNU tar!?) that sends the output to > STDOUT which the netjuke script batch.php expects. > > Netjuke uses 'tar c -C <basedir> <files>' at the moment, which doesn't > specify stdout as output explicitly. I suggest changing the command to > 'tar cf - -C <basedir> <files>' which tells tar to use - (stdout) as > output file. > > I attached a version of batch.php which is changed accordingly. > > Florian <[email protected]> Thanks, sorry for the multiple postings, had some trouble with the list today :-) I managed to get it to work, but I will use your file as it also works. thanks ------------------------------------------------------------- Scott Haneda Tel: 415.898.2602 http://www.newgeo.com Fax: 313.557.5052 [email protected] Novato, CA U.S.A. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf