Can I execute a shell script from Wine ?

BKirshte at kbtoys.com BKirshte at kbtoys.com
Tue Sep 9 11:14:53 CDT 2003


Thanks !  It works - I was able to run it from Lotus Notes !
Double-click still did not work for me in winefile, but if I do File | Run
it works ...
Thanks Rein for the help !

Boris Kirshteyn
K-B Toys, Software Architect
(413) 496-3249
bkirshte at kbtoys.com


                                                                                                                                   
                      Rein Klazes                                                                                                  
                      <rklazes at xs4all.n        To:       BKirshte at kbtoys.com                                                       
                      l>                       cc:       wine-users at winehq.com                                                     
                                               Subject:  Re: Can I execute a shell script from Wine ?                              
                      09/09/2003 10:36                                                                                             
                      AM                                                                                                           
                      Please respond to                                                                                            
                      rklazes                                                                                                      
                                                                                                                                   
                                                                                                                                   




On Tue, 9 Sep 2003 09:09:12 -0400, you wrote:

>
> What I really want is - to trigger some Linux shell scripts, or PERL from
> Lotus Notes script "shell" command.
>
>       batchFile = "z:\usr\share\bin\test.bat"
>       If Dir$(batchFile) <> "" Then
>             taskId% = Shell(batchFile)
>       Else
>             Print batchFile & " not found."
>       End If
>
> (where test.bat has one line similar to this one - <perl_pgm_name>.pl

And is it really:
- a Linux shell script (first line is "#!/bin/sh, no CRLF line
separators )
- is it executable for you?

No messages on the terminal screen?

And the .bat extension might have side effects, to be at the safe side I
use .exe unless it is a DOS batch file.

>
> I've also tried  winefile (did not know it existed)


> - double click did not
> do it though ...

It should. For testing I creted a small script:
=====================
#!/bin/sh
echo hello from Linux $0
=====================
and saved it in hello.sh
then made it executable:
chmod +x hello.sh
the I start winefile and double click the script. On the terminal screen
hello from Linux /home/rein/hello.sh

Rein.
--
Rein Klazes
rklazes at xs4all.nl








More information about the wine-users mailing list