Hi,
I am creating script to execute a command.
for example my directory is /home/rana/script/
and then i want to execute ./abc.sh file from there
i am using following command
system("cd $output_directory") ;
system("./abc.sh");
where my output directory is /home/rana/script/
but i am unable to execute ./abc.sh clean build-all file
please help me out its very urgent
rana03
0
Newbie Poster
Recommended Answers
Jump to PostYou can use the chdir function from Perl. Maybe the cd command doesn't change the current working directory. You can check it with the getcwd function from Perl.
All 4 Replies
GDICommander
54
Posting Whiz in Training
bigtiny
0
Newbie Poster
katharnakh
7
Posting Whiz in Training
crb3
0
Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.