I am currently using Windows self extractor from the command line and it works great to convert zip files to windows exe's. The issue I'm having is if I try and cron this through a shell scipt it complains with the following + wine '/usr/share/wine-c/Program Files/WinZip Self-Extractor/WinZIPse.EXE' /y /le /overwrite 'Z:\home\mcsops\scripts\ctyctr4\sys\chhs\GROUPS\ED3TPA\ed3div.zip' x11drv: Can't open display: This command works great when I run the shell script manually it just gives me the error when I add it to cron. I'm currently running Redhat 7.2 with Wine build 20010629 under KDE 2.2.1. Thanks. Brett Simpson Internet Administrator for Hillsborough County (813) 301-7144 simpsonb@hillsboroughcounty.org
In comp.emulators.ms-windows.wine, Brett Simpson <Simpsonb@hillsboroughcounty.org> wrote on Wed, 17 Oct 2001 09:55:06 -0400 <sbcd5584.031@GroupWise>:>I am currently using Windows self extractor from the command line and >it works great to convert zip files to windows exe's. >The issue I'm having is if I try and cron this through a shell scipt >it complains with the following > >+ wine '/usr/share/wine-c/Program Files/WinZip Self-Extractor/WinZIPse.EXE' >/y /le /overwrite 'Z:\home\mcsops\scripts\ctyctr4\sys\chhs\GROUPS\ED3TPA\ >ed3div.zip' >x11drv: Can't open display: > >This command works great when I run the shell script manually it just >gives me the error when I add it to cron. I'm currently running Redhat >7.2 with Wine build 20010629 under KDE 2.2.1.A few observations. [1] Most likely, you're running the script manually from within an Xterm, which has the DISPLAY variable set to the X display containing the Xterm. That's why it works. Since a cronjob hasn't got DISPLAY set, it won't work there. Setting DISPLAY may not work, either -- it depends on whether you've always got X up, and whether X allows connections or not (I highly doubt X will work properly during xdm login, for example, but haven't tried it). This is probably in the FAQ somewhere. [2] Have you tried 'zip -A'? The manpage suggests that '-A' prepends an SFX stub, although it's far from clear that that stub is for Linux or for Windows, or even for AmigaOS. [3] Your Wine build could be updated, but it won't help. :-) 06/29 is a bit old. I don't know if it's possible to run Win32 console apps under Wine without an X display yet. [.sigsnip] -- ewill@aimnet.com -- insert random misquote here EAC code #191 97d:20h:13m actually running Linux. Use the source, Luke.
On Wed, 17 Oct 2001, Brett Simpson wrote:> I am currently using Windows self extractor from the command line and it works great to convert zip files to windows exe's. The issue I'm having is if I try and cron this through a shell scipt it complains with the following > > + wine '/usr/share/wine-c/Program Files/WinZip Self-Extractor/WinZIPse.EXE' /y /le /overwrite 'Z:\home\mcsops\scripts\ctyctr4\sys\chhs\GROUPS\ED3TPA\ed3div.zip' > x11drv: Can't open display: > > This command works great when I run the shell script manually it just gives me the error when I add it to cron. I'm currently running Redhat 7.2 with Wine build 20010629 under KDE 2.2.1. >If the app doesn't need the display, ~/.wine/config ... [wine] ... "GraphicsDriver" = "ttydrv" This will make a mess of any app that does need the display, that is why there is a WINEPREFIX you can set to use different config files for different apps. If the app does need the display, I guess you will have to set DISPLAY=0:0 or something in your crontab and make sure that user is authorized to use the display.> Thanks. > > Brett Simpson > Internet Administrator for Hillsborough County > (813) 301-7144 > simpsonb@hillsboroughcounty.org > >Lawson panic: detected rogue system administrator!! ---cut here ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/.
I added "GraphicsDriver" = "ttydrv" to my config file and now it works under cron. Thanks.>>> lawson_whitney@juno.com 10/17/01 12:50PM >>>On Wed, 17 Oct 2001, Brett Simpson wrote:> I am currently using Windows self extractor from the command line and it works great to convert zip files to windows exe's. The issue I'm having is if I try and cron this through a shell scipt it complains with the following > > + wine '/usr/share/wine-c/Program Files/WinZip Self-Extractor/WinZIPse.EXE' /y /le /overwrite 'Z:\home\mcsops\scripts\ctyctr4\sys\chhs\GROUPS\ED3TPA\ed3div.zip' > x11drv: Can't open display: > > This command works great when I run the shell script manually it just gives me the error when I add it to cron. I'm currently running Redhat 7.2 with Wine build 20010629 under KDE 2.2.1. >If the app doesn't need the display, ~/.wine/config ... [wine] ... "GraphicsDriver" = "ttydrv" This will make a mess of any app that does need the display, that is why there is a WINEPREFIX you can set to use different config files for different apps. If the app does need the display, I guess you will have to set DISPLAY=0:0 or something in your crontab and make sure that user is authorized to use the display.> Thanks. > > Brett Simpson > Internet Administrator for Hillsborough County > (813) 301-7144 > simpsonb@hillsboroughcounty.org > >Lawson panic: detected rogue system administrator!! ---cut here ________________________________________________________________ GET INTERNET ACCESS FROM JUNO! Juno offers FREE or PREMIUM Internet access for less! Join Juno today! For your FREE software, visit: http://dl.www.juno.com/get/web/. _______________________________________________ wine-users mailing list wine-users@winehq.com http://www.winehq.com/mailman/listinfo/wine-users