Re: Can I execute a shell script from Wine ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xs4all.nl
_______________________________________________
wine-users mailing list
wine-users@winehq.com
http://www.winehq.com/mailman/listinfo/wine-users

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux