Families Laws wrote:
>
> I tried to do a change directory and then do a tar of
> the directory:
>
> My program:
>
> system("cd /usr/apps");
Like Jeff told, use the chdir function
(perldoc -f chdir)
>
You should always check the return value of the system command.
Note that return 0 is O
On Jan 7, Families Laws said:
>I tried to do a change directory and then do a tar of
>the directory:
Use the chdir() function.
> system("cd /usr/apps");
That creates a new shell, exectes 'cd /usr/apps', and then closes the
shell. End result: you've moved nowhere.
--
Jeff "japhy" Pinyan
I tried to do a change directory and then do a tar of
the directory:
My program:
system("cd /usr/apps");
system("tar -cf tarfile.tar DDA/*");
It looks like the cd command does not work ?
Thanks in advance.
__
Do You Yahoo!?
Send FREE video