Question

Locked

Need help

By virag2k ·
Hi guys,
I am new to perl as well as linux. I just want to make use of a perl script that will run a command for me. The command is not a standard unix command such as [ls] or [ls-l]. Instead it is a command to run another program written in C. I have used the system and exec functions available in perl, but to no avail.
Looking forward to some solution.
Thanks for your time and patience.

Virag

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Collapse -

Here is an example to properly call the C program

by IC-IT In reply to Need help

system() expects a string (or a list of strings) ? not a mixture of whitespace-separated strings and barewords.

system('"C:\\Program files\\Borland\\SilkTest\\partner.exe" -q -r "C
+\Perfrom_Acce\\Investigate\\Investigate_ACCEPTANCE.t" WelcomePagesOn'
+);

(note the single quotes around the entire command)

Back to Linux Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums