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 07-23-2010, 05:24 AM   #1
sharad wagh
LQ Newbie
 
Registered: Jun 2010
Posts: 3

Rep: Reputation: 0
Error in unzipping using system function


I have to unzip only files in zipped folder in current directory by c program. For that I am using system() function. This function returns zero
when I write system("unzip -jo /storage/conf.zip") but folder will not be unzipped. Same will be successful if tried on command line.
Please suggest me the solution.

Thanks,
Sharad Wagh.
 
Old 07-23-2010, 05:46 AM   #2
Web31337
Member
 
Registered: Sep 2009
Location: Russia
Distribution: Gentoo, LFS
Posts: 399
Blog Entries: 71

Rep: Reputation: 65
Your topic name could be got wrong: what's the system function can unzip? Better looks as "using system() function" or omitting "function" at all, if using brackets.
Try using a direct path to unzip. Or using strace to debug.
 
  


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
Unzipping problem | write error (disk full?) rodrigogp Red Hat 17 04-20-2010 04:03 AM
[SOLVED] g++ error message no matching function for call to some function Jerry Mcguire Programming 6 04-13-2010 08:37 PM
unzipping multiple files error. crofty13 Linux - General 1 05-01-2006 06:27 PM
Error while "unzipping" rpm files, and lots of lib errors! Einar Magnus Linux - Software 0 10-09-2004 05:58 PM
Perl exec function in linux (and system-function) nazula Programming 1 04-19-2004 12:21 PM

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

All times are GMT -5. The time now is 08:41 PM.

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