LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   execute pkzip.exe from a php script (https://www.linuxquestions.org/questions/linux-general-1/execute-pkzip-exe-from-a-php-script-56544/)

cuboctahedron 04-24-2003 05:35 AM

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

jharris 04-24-2003 06:20 AM

Simply use the unzip command.

cheers

Jamie...

cuboctahedron 04-24-2003 06:32 AM

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?

acid_kewpie 04-24-2003 06:40 AM

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?

jharris 04-24-2003 06:49 AM

Quote:

Originally posted by cuboctahedron
"bash: pkzip.exe: command not found"
Not pkzip unzip!!:p
Code:

unzip myZipFile.zip
cheers

Jamie...

cuboctahedron 04-24-2003 06:53 AM

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

jharris 04-24-2003 06:56 AM

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...

acid_kewpie 04-24-2003 08:14 AM

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


All times are GMT -5. The time now is 11:32 PM.