I need to be able to trigger a Linux procedure (shell script, or PERL for example) from Wine. Is it possible to do ? Please help ! Thanks. Boris Kirshteyn K-B Toys, Software Architect (413) 496-3249 bkirshte@kbtoys.com
No, wine can run windows batch files, but not shell scripts, what OS are you running?
On Mon, 8 Sep 2003 15:58:36 -0400, you wrote:> I need to be able to trigger a Linux procedure (shell script, or PERL for > example) from Wine. > Is it possible to do ?Launching a Linux execuatable from a windows executable running under wine is quite possible. It must be located on a configured DOS drive. It may need to be called <something>.exe depending on the way it is launched. Rein. -- Rein Klazes rklazes@xs4all.nl
Okay, here is my situation : All our clients PCs are running SuSe7.3 and wine-20020710. The only reason we use wine is so we can run Lotus Notes R5 client. I am impressed so far the way Lotus Notes runs under wine. What I want to be able to do is to trigger some Linux shell scripts from Lotus Notes "shell" command. Essentially I need to be able to run something like "wine c: \<script_name>.sh", but I am getting an "Illegal function call" when I do that ... Boris Kirshteyn K-B Toys, Software Architect (413) 496-3249 bkirshte@kbtoys.com
On Tue, 9 Sep 2003 07:57:04 -0400, you wrote:> > Thanks for the quick response. > So, how would I run a shell script ? > "wine c:\shell_script_name.sh" gives me "Illegal function call" error > message.That is why I wrote "from a windows program". Start winefile, double click on the icon of a shellscript, works here. I launch Linux programs from within Agent same way. If that is not what you want, can you explain why you cannot execute the Linux script directly? Rein. -- Rein Klazes rklazes@xs4all.nl
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 I've also tried winefile (did not know it existed) - double click did not do it though ... What am I doing wrong here ? Thanks. Boris Kirshteyn K-B Toys, Software Architect (413) 496-3249 bkirshte@kbtoys.com Rein Klazes <rklazes@xs4all.n To: BKirshte@kbtoys.com l> cc: wine-users@winehq.com Subject: Re: Can I execute a shell script from Wine ? 09/09/2003 08:22 AM Please respond to rklazes On Tue, 9 Sep 2003 07:57:04 -0400, you wrote:> > Thanks for the quick response. > So, how would I run a shell script ? > "wine c:\shell_script_name.sh" gives me "Illegal function call" error > message.That is why I wrote "from a windows program". Start winefile, double click on the icon of a shellscript, works here. I launch Linux programs from within Agent same way. If that is not what you want, can you explain why you cannot execute the Linux script directly? Rein. -- Rein Klazes rklazes@xs4all.nl
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@kbtoys.com Rein Klazes <rklazes@xs4all.n To: BKirshte@kbtoys.com l> cc: wine-users@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>.plAnd 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
Hi, I have a knoppix installed and winxp. Can configure wine to use the win partition and libraries? thanks, RIK
Thank you for the reply to the previous problem. Now wine seems to work properly without segmentation faults! :) However, when I try to install a program (ModelSim simulator), the Install Shield decompresses without problems, but then it freezes. From the console I see the following message: fixme:dosfs:GetDiskFreeSpaceExW no per-user quota support yet fixme:dosfs:GetDiskFreeSpaceExW no per-user quota support yet fixme:font:WineEngCreateFontInstance just using first face for now X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 12 (X_ConfigureWindow) Serial number of failed request: 92 Current serial number in output stream: 98 Could someone shed some light as to what the above problem(s) mean? Is there any suggestion as to how to fix that? Thank you very much in advance! :-) -- Sincerely, Jung Ko http://www.ece.ualberta.ca/~jung