I am facing a huge problem, at least to me, a newbie in Linux and a "newbie" with PHP related to this aspect specifically.
The main goal of my post is: TRY TO UNDERSTAND WHY I CAN T KEEP CONNECTED the necessary time to execute a communication with a developed shell programm.
If in the command line at linux - the code below when its called works PERFECTLY. It's divided in two parts: a) changes the actual directory to the "dynamic one"; b) TAR the content of that directory.
Code: Select all
#!/bin/sh
#
if test -z $1
then
echo "empty directory - please inform one..."
else
cd "$1/"
tar -cf "$1.tar" cbq*
#ls -al
fiI really need a help with this.
Thank you very much for your reading and forgive my "english".
Kind Regards,
Luyz Nascimento.