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.
In reply to Re^2: wait command syntax
by jperlq
in thread wait command syntax
by jperlq
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |