Re: how to change directory in AIX in Perl ?

2002-01-08 Thread Andrea Holstein
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

Re: how to change directory in AIX in Perl ?

2002-01-07 Thread Jeff 'japhy' Pinyan
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

how to change directory in AIX in Perl ?

2002-01-07 Thread Families Laws
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