| View previous topic :: View next topic |
| Author |
Message |
nvgishere General User

Joined: 10 Feb 2010 Posts: 38
|
Posted: Fri Mar 05, 2010 8:07 am Post subject: how to run a perl script using shell function in unix? |
|
|
pls help to execute a perlscript (generate.pl)
using shell function
The perl script is saved in the same path as the calc file.(ods) which holds the macro |
|
| Back to top |
|
 |
SergeM Super User

Joined: 09 Sep 2003 Posts: 3211 Location: Troyes France
|
|
| Back to top |
|
 |
nvgishere General User

Joined: 10 Feb 2010 Posts: 38
|
Posted: Sat Mar 06, 2010 5:45 am Post subject: |
|
|
Hey,
I have a .ods file and a script(myscript) saved in the same path
The ods file has a macro which executes
Shell ("./myscript")
However, when i run the macro i get the message
"Basic Runtime Error: File not found"
Pls let me knw y this is happening?
Doesn't the function , Shell( "./myscriot") supposed to work on the scrpit which is in the same directory path as the .ods file. |
|
| Back to top |
|
 |
nvgishere General User

Joined: 10 Feb 2010 Posts: 38
|
Posted: Tue Mar 30, 2010 1:32 am Post subject: |
|
|
i am trying to use the shell function in the following manner
shell("/h/naveen/exec_file",1,,true)
where exec_file is an executable file which contains the follwoing
./myscript run1
./myscript run2
When i execute the macro, i am getting the following error...
"File Not Found".
Pleas let me know,
1) if i am giving the current command
2) is there any other way to run a script of scripts using shell command?
Thanks and Regards
Naveen |
|
| Back to top |
|
 |
|