in reply to Re: wait command syntax
in thread wait command syntax
the script called `python content2.py`
when ran from the terminal, clobers and then creates a directory called /cachedata
but when this script is ran inside the perl script,
sub print_content { `python content2.py`; print header; print start_html(-title=>'Strain entry', -style=>{'src'=>'/Attempt_2.css', 'type'=>'text/css'}); start_form(-action=>'forensics.cgi?button=pushed'); print table({-'align'=>'left',-'border'=>'1', -'bordercolor'=>'CCC +CCC', -'width'=>'45%', -'cellspacing'=>'0', -'cellpadding'=>'0'}); opendir CACHE_DIR, $cache_dir or die "Cannot open $cache_dir: $!"; my $file; foreach $file (readdir CACHE_DIR) { my $current_file = $file; next if ($file =~ /^\./); $file = "peregrine.local/cgi-bin/final/$cache_dir/$file"; print Tr(td({-'bgcolor'=>'#D4E4F0'}, "<a href=http://$file>$cu +rrent_file</a>")) ."\n"; } }
the /cachedata is indeed clobered, but the new directory is not written?
any insight as to why?
my first guess was that the perl script was not waiting for the python script to finish.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: wait command syntax
by ikegami (Patriarch) on Mar 20, 2008 at 01:39 UTC | |
by alexm (Chaplain) on Mar 20, 2008 at 11:05 UTC | |
by Anonymous Monk on Aug 11, 2008 at 07:01 UTC | |
by ikegami (Patriarch) on Aug 11, 2008 at 08:11 UTC | |
|
Re^3: wait command syntax
by MonkE (Hermit) on Mar 19, 2008 at 23:56 UTC | |
|
Re^3: wait command syntax
by nefigah (Monk) on Mar 20, 2008 at 00:14 UTC | |
by jperlq (Acolyte) on Mar 20, 2008 at 00:39 UTC | |
by Corion (Patriarch) on Mar 20, 2008 at 07:00 UTC | |
by nefigah (Monk) on Mar 20, 2008 at 03:50 UTC | |
by nefigah (Monk) on Mar 20, 2008 at 07:52 UTC |