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 |
Simply use the unzip command.
cheers Jamie... |
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? |
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? |
Quote:
Code:
unzip myZipFile.zip Jamie... |
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 |
Yeap, you use the zip command, just like you would use pkzip under dos.
Code:
zip zipFileName /files/to/be/stored/in/the/zip/* Jamie... |
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. |