From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Sat, 26 Jan 2002 04:09:53 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 116 ************************************************** Friday 25 January 2002 Number 116 ************************************************** Subjects for today 1 Re: Error with Perl 561[Netcomics] : Tim Erickson" 2 Re: Re: vxcron (was Re: Cron/2 1.41 DOS Session error? : Adrian Gschwend" 3 Re: Error with Perl 561[Netcomics] : Henry Sobotka 4 Re: Error with Perl 561[Netcomics] : John Poltorak 5 Re: Error with Perl 561[Netcomics] : Thomas Dickey **= Email 1 ==========================** Date: Sat, 26 Jan 2002 09:53:11 -0700 (MST) From: "Tim Erickson" Subject: Re: Error with Perl 561[Netcomics] On Fri, 25 Jan 2002 23:56:41 -0500, Henry Sobotka wrote: >Yes, I screwed up by confusing gcc's -mcpu and -march flags. >Replacements are in http://www.elzahir.org/perl/. They're just the >binaries, so install by overwriting the original installation. > >h~ > Thanks for the heads up on the binaries. I installed them and now have perl working. I have been trying to get Netcomics to work on OS/2 but admit I am a clueless newbie with shell scripts and perl. I was hoping to write something similar to Netcomics, in ReXX or Ada95, for OS/2. I wouldn't mind some feedback from anyone who has gotten Netcomics to run. http://netcomics.sourceforge.net/ Thanks Tim **= Email 2 ==========================** Date: Sat, 26 Jan 2002 12:32:39 +0100 (CET) From: "Adrian Gschwend" Subject: Re: Re: vxcron (was Re: Cron/2 1.41 DOS Session error? On Fri, 25 Jan 2002 14:20:28 +0300 (MSK), Andrew Belov wrote: >Just forgot to mention, crontab requires a KSH/BASH-alike shell, the one that will treat >"-c" in the same way as CMD.EXE treats "/c". The shell is specified to VXCron with >%_PATH_BSHELL% environment variable and defaults to "sh". Since there are many >tools using "sh", I just put the Korn shell 5.2.7 under SH.EXE, but you may also set >_PATH_BSHELL to KSH.EXE or BASH.EXE if you like. That is of litte relevance unless >your editor deploys some shell scripts too. Wow it works now! Thanks for the hint, _PATH_BSHELL made the trick. Now a step by step guide for less experienced users like me, credits go to Andrew, Holger and John. Maybe we could add this to the zip-file to help other users. --- cron/crontab on OS/2 mini how-to: First, check the manpages of cron and crontab for detailed info! you need to set the following environment variables: VISUAL, EDITOR -> points to your favourite editor (vim on my system) _PATH_BSHELL -> your sh or sh-alike shell. If this is not set it assumes that there is a sh.exe on your system. You can also use bash.exe or another alike shell (*not* cmd.exe!). CRONDIR -> the location of your cron.d/cron directories. If this is not set it will point to %ETC% (I didn't set this, see below) Needed (f)iles/(d)irectories: d: %ETC%/cron.d -> fine tuning of sheduling for special purpose, see man for more info. The directory *needs* to be present d: %ETC%/cron -> man cron dir, the log-file will be put there d: %ETC%/cron/tabs -> user tab files will be in there f: %ETC%/cron/tabs/%USER% -> the files per user. Don't edit the user-files by hand, use crontab to edit them: crontab -e If you get an error about your editor you didn't set one of the environment-variables and/or you forgot to install sh or an sh-alike shell. To add an entry read the manpage, "man 5 crontab" gives an explanation of the crontab format. Now you can start cron itself. If you want to check for new files the OS/2 version got a special option -i, this will force a check of the timestamp. cron -i would do the trick. if you run into troubles, for example if cron just quits you can start it in debug mode: cron -x load -i this gave me the hints about what was wrong. Adrian Gschwend, --- cu Adrian -- Adrian Gschwend at OS/2 Netlabs ICQ: 22419590 ktk at netlabs.org ------- The OS/2 OpenSource Project: http://www.netlabs.org **= Email 3 ==========================** Date: Sat, 26 Jan 2002 17:44:54 -0500 From: Henry Sobotka Subject: Re: Error with Perl 561[Netcomics] John Poltorak wrote: > > Sometimes you can just run:- > > make install > > to install a Perl program, but in this case I got:- > > [N:\eval\netcomics\netcomics-0.13.2]make install > SYS1079: ( was unexpected at this time. > make: *** [remake_check] Error 1 My guess is it's a shell thing. Try setting SHELL to bash before running make. h~ **= Email 4 ==========================** Date: Sat, 26 Jan 2002 17:50:52 +0000 From: John Poltorak Subject: Re: Error with Perl 561[Netcomics] On Sat, Jan 26, 2002 at 09:53:11AM -0700, Tim Erickson wrote: > On Fri, 25 Jan 2002 23:56:41 -0500, Henry Sobotka wrote: > > I have been trying to get Netcomics to work on OS/2 but admit I am a clueless newbie with shell scripts and perl. I was hoping to write something similar to Netcomics, in > ReXX or Ada95, for OS/2. I wouldn't mind some feedback from anyone who has gotten Netcomics to run. Sometimes you can just run:- make install to install a Perl program, but in this case I got:- [N:\eval\netcomics\netcomics-0.13.2]make install SYS1079: ( was unexpected at this time. make: *** [remake_check] Error 1 I couldn't locate the precise position of the error but it looks to be related to remake_check as the target... > http://netcomics.sourceforge.net/ > > Thanks > > Tim -- John **= Email 5 ==========================** Date: Sat, 26 Jan 2002 21:12:36 -0500 From: Thomas Dickey Subject: Re: Error with Perl 561[Netcomics] On Sun, Jan 27, 2002 at 10:21:17AM +1100, Alex Newman wrote: > With regard to sh(ells): I come across conflicting advice from various > people: some say to use ksh nad make a copy of ksh.exe to /bin/sh.exe; > others say to use bash. And pretty well everyone say that all ported the > un*x shells are broken in one way or another. So which one (and wich > version?) is the "canonical" shell for emx shell and/or unixos/2(aka > posix2?)? Or does it depend on which sh a particular package was > ported/compiled on? > > Has anyone else tried (and had success with!) tcsh 6.072? tcsh won't work as a replacement for sh -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net