LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-2003, 05:35 AM   #1
cuboctahedron
Member
 
Registered: Nov 2002
Posts: 70

Rep: Reputation: 15
execute pkzip.exe from a php script


Hi,
Earlier I've created a website under a windows machine.
Now I am running redhat8 and put the php files there.

Some files are archived using pkzip.

I was wondering if how I can execute pkzip.exe. ?

Help appreciated,

cheers
Patrick
 
Old 04-24-2003, 06:20 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Simply use the unzip command.

cheers

Jamie...
 
Old 04-24-2003, 06:32 AM   #3
cuboctahedron
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
I am trying to zip something:

When I try in the command line 'pkzip.exe' , (in the directory where pkzip is located) I get the error message:

"bash: pkzip.exe: command not found"

Any idea?
 
Old 04-24-2003, 06:40 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
a) it's not on your path. your current directory should never be on your path... run ./executable

b) this isn't windows... you can't run windows programs on linux like that. tried running your car on cough medicine?
 
Old 04-24-2003, 06:49 AM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Quote:
Originally posted by cuboctahedron
"bash: pkzip.exe: command not found"
Not pkzip unzip!!
Code:
unzip myZipFile.zip
cheers

Jamie...
 
Old 04-24-2003, 06:53 AM   #6
cuboctahedron
Member
 
Registered: Nov 2002
Posts: 70

Original Poster
Rep: Reputation: 15
I was hopeing Wine, which is installed with redhat8, would recognize pkzip.
Also the zipfile I am trying to execute is in the same directory where I am currently located (When I type ls -al I see the files)

Is there another command in redhat8 whereby I can zip a file?

Sorry for these Newbie like questions

Kind regards
Patrick
 
Old 04-24-2003, 06:56 AM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
Yeap, you use the zip command, just like you would use pkzip under dos.
Code:
zip zipFileName /files/to/be/stored/in/the/zip/*
HTH

Jamie...
 
Old 04-24-2003, 08:14 AM   #8
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
wine is a program, you have to run it directly, it can't just leap out of nowhere when you type the letters "exe"...
 
  


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
execute exe file mtitu11 Linux - General 2 09-12-2005 05:25 PM
How to Execute PHP Script? notooth Linux - General 2 06-02-2005 05:43 AM
execute php script from /etc/ppp/ip-up tomcontr Programming 1 11-12-2004 01:19 AM
execute php script automatically? brandnewbie Linux - Newbie 1 08-14-2004 05:42 AM
PHP -- How to execute a shell script from PHP using FTP functions?? zoonalex Programming 3 07-29-2004 11:51 AM


All times are GMT -5. The time now is 01:10 PM.

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