Hi,
I have a perl script running on Linux environment.
I have a list of Oracle form files. These files need to be translated into text files, which I
can open and look for various patterns etc.
I loop though the perl script and create a shell script which looks like this
/oracle/IAS/bin/frmcmp_batch.sh module=/home/forms/src/ealib450.pll module_type=library userid=XXXX/XXXX@XXXX compile_all=yes batch=yes script=yes Output_File=ealib450.txt debug=yes
I then try to execute this command via, system command as I want the script to continue running afterwards (so exec is out).
Code for running the command is
system("sh $temp_shell2")|| print "2 failed to execute $!\n";
I read this here http://www.perlmonks.org/?node_id=78523, but still no luck!
This fails with a 'Inappropriate ioctl for device' message, which I read could be a red herring!
However if I open the Linux window, go to the directory and type the filename in, the script executes!
Just to make matters more confusing, I can create a shell script in my windows environment with exactly the same command, putty the file
over to the Linux box and Plink the file, and the file executes!
Why can I not execute the Linux script Via the Perlscipt that created it in the Linux environment?
Thanks in Advance
Ant
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.