ytjPerl has asked for the wisdom of the Perl Monks concerning the following question:
Hi guys, I need to execute 'tmboot -y' to startup application, and before that I need to run setenv.cmd to setup the environment. I have my code as below, but it was running with failure, stating 'tmboot' is not recognized as internal or external command. usually when I dont run setenv.cmd before 'tmboot -y', I got that error. but I already ran that in my script. I do not what is wrong with my script, thanks
use warnings; use strict; chdir "/server/setup"; my $env = system('setenv.cmd'); my $output = system('tmboot -y'); print $output;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: how to execute 'tmboot -y'
by hippo (Bishop) on Jul 25, 2017 at 18:31 UTC | |
Re: how to execute 'tmboot -y'
by haukex (Archbishop) on Jul 25, 2017 at 18:34 UTC | |
Re: how to execute 'tmboot -y'
by Mr. Muskrat (Canon) on Jul 25, 2017 at 18:31 UTC | |
Re: how to execute 'tmboot -y'
by ytjPerl (Scribe) on Jul 25, 2017 at 19:42 UTC | |
by poj (Abbot) on Jul 25, 2017 at 20:26 UTC | |
Re: how to execute 'tmboot -y'
by ytjPerl (Scribe) on Jul 25, 2017 at 19:50 UTC | |
by roboticus (Chancellor) on Jul 25, 2017 at 20:14 UTC |
Back to
Seekers of Perl Wisdom