OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

how to run a perl script using shell function in unix?

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
nvgishere
General User
General User


Joined: 10 Feb 2010
Posts: 38

PostPosted: Fri Mar 05, 2010 8:07 am    Post subject: how to run a perl script using shell function in unix? Reply with quote

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
View user's profile Send private message
SergeM
Super User
Super User


Joined: 09 Sep 2003
Posts: 3211
Location: Troyes France

PostPosted: Fri Mar 05, 2010 10:33 am    Post subject: Reply with quote

Have a look here for a start :
shell command - How do I see the results of my shell command http://www.oooforum.org/forum/viewtopic.phtml?t=9503
using shell command in Openoffice version 1.1.4 http://www.oooforum.org/forum/viewtopic.phtml?t=19972&highlight=
_________________
Linux & Windows OOo3.0
UNO & C++ : WIKI
http://wiki.services.openoffice.org/wiki/Using_Cpp_with_the_OOo_SDK
In French
http://wiki.services.openoffice.org/wiki/Documentation/FR/Cpp_Guide
Back to top
View user's profile Send private message Visit poster's website
nvgishere
General User
General User


Joined: 10 Feb 2010
Posts: 38

PostPosted: Sat Mar 06, 2010 5:45 am    Post subject: Reply with quote

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
View user's profile Send private message
nvgishere
General User
General User


Joined: 10 Feb 2010
Posts: 38

PostPosted: Tue Mar 30, 2010 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group