Hi,
I need to unzip/zip a bunch of files in an IFS folder from an RPG ILE program.
As the format for both initial and final zipped files is RAR I installed 7z utility from Scott Klement repository.
Everything works fine when running the commands from QP2TERM, but I can't make the same commands working from QSHELL, which I could call passing both the change directory command and the zip/unzip request. I always get this error:
> 7z a test3.rar *.*
/usr/bin/7z: 001-0019 Errore rilevato durante la ricerca del comando ÂÑ. Questo percorso o indirizzario non esiste.
/usr/bin/7z: 001-0014 Comando } Î/Ê?øÈø :Ñø%ÑÂ Î/Ê?øÈø :Ñø%ÑÂø :Ñø : non trovato.
which more or less sounds like "Error while searching the command. The path or the directory doesn't exist"; also, I can't really understand why there are so many unconverted characters.
The PATH environment variable returns:
> echo $PATH
/usr/bin:.:/QOpenSys/usr/bin
and the soft links to 7z command exists in both the path directories.
Given that IBM iOS version is V7R2 I thought QSH can run PASE commands without problems, but obviously my assumption is wrong.
Is there something I miss to make 7z running from QSH?
Thank you very much
I need to unzip/zip a bunch of files in an IFS folder from an RPG ILE program.
As the format for both initial and final zipped files is RAR I installed 7z utility from Scott Klement repository.
Everything works fine when running the commands from QP2TERM, but I can't make the same commands working from QSHELL, which I could call passing both the change directory command and the zip/unzip request. I always get this error:
> 7z a test3.rar *.*
/usr/bin/7z: 001-0019 Errore rilevato durante la ricerca del comando ÂÑ. Questo percorso o indirizzario non esiste.
/usr/bin/7z: 001-0014 Comando } Î/Ê?øÈø :Ñø%ÑÂ Î/Ê?øÈø :Ñø%ÑÂø :Ñø : non trovato.
which more or less sounds like "Error while searching the command. The path or the directory doesn't exist"; also, I can't really understand why there are so many unconverted characters.
The PATH environment variable returns:
> echo $PATH
/usr/bin:.:/QOpenSys/usr/bin
and the soft links to 7z command exists in both the path directories.
Given that IBM iOS version is V7R2 I thought QSH can run PASE commands without problems, but obviously my assumption is wrong.
Is there something I miss to make 7z running from QSH?
Thank you very much
Comment