LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-12-2013, 11:06 AM   #1
deannad
LQ Newbie
 
Registered: Jun 2013
Posts: 1

Rep: Reputation: Disabled
cygwin simple tar command fails when issues on command line


Hi,

I can run tar commands just fine inside a cygwin terminal window, but my app needs to issue a cygwin command line tar and I can NOT make it work. I've tried all kinds of quoting and escaping, but I can't figure it out!

Even this one (works great in cygwin window):
tar -tvf dld.gz

...but fails when issued like this:
c:\cygwin\bin\bash.exe -c /usr/bin/tar -tvf dld.gz
/usr/bin/tar: You must specify one of the `-Acdtrux' or `--test-label' options
Try `/usr/bin/tar --help' or `/usr/bin/tar --usage' for more information.

If I add quotes the error becomes:
c:\cygwin\bin\bash.exe -c '/usr/bin/tar tvf dld.gz'
tar (child): gzip: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
/usr/bin/tar: Child returned status 2
/usr/bin/tar: Error is not recoverable: exiting now


ANY help would be VERY appreciated!!!
 
Old 06-12-2013, 11:22 AM   #2
hunternet93
Member
 
Registered: Jun 2009
Posts: 87

Rep: Reputation: 31
I've never used Cygwin, but it looks like you need to add your Cygwin programs to your system PATH. The Setup.exe program can install various Cygwin components, I'd recommend Googling it.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Tar command line questions (am I missing something?) steak1987 Linux - Newbie 5 01-14-2012 09:54 PM
Simple tar command sachinh Linux - General 4 07-10-2009 09:28 AM
[SOLVED] Simple tar based backup command? Bryan88 Linux - Newbie 3 04-21-2007 10:04 AM
How do I install .tar.gz apps via the command line? BigFoot13 Linux - Newbie 33 11-14-2006 04:06 PM
Simple help in Linux command line daeojkim Programming 3 09-30-2003 11:21 PM


All times are GMT -5. The time now is 05:36 AM.

Main Menu
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