Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <217E3C0C100E144B93AF131E71C6D62A031E7F5E@edc-exchange.everdreamcorp.com> From: David Byron To: "'cygwin AT cygwin DOT com'" Subject: RE: Crontab on Win9X works Date: Tue, 15 Apr 2003 09:44:13 -0700 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C3036E.3F3C05D0" Note-from-DJ: This may be spam ------_=_NextPart_000_01C3036E.3F3C05D0 Content-Type: text/plain Pierre A. Humblet wrote > Corinna Vinschen wrote: > > > > On Mon, Apr 14, 2003 at 10:44:23PM -0400, Pierre A. Humblet wrote: > > > > The change in env.c reverts to ignoring the daemon > > > environment, on Win9x only. > > > > Why? > > For the same reason as the original cron does it, I guess. > On Win9X it is typically a large user environment, including > functions in the case of bash. On NT it is only the small > service environment. Also the functions screw up the mail > headers (because "}>" isn't a valid > mail header), as in > ****************************** > X-Cron-Env: > X-Cron-Env: <_=./cron> > X-Cron-Env: Date: Mon, 14 Apr 2003 18:20:00 -0400 > > }> > X-Cron-Env: }> > X-Cron-Env: -pwidth 8 > -pheight 7 -but_per_row 3 +-startgridmode 1 -startposnmode 1 $* & }> > ********************************** I ran into this same thing under XP when I start cron from my user context. One of my environment variables has a carriage return in it so that everything before it goes properly into the header, and everything after it goes into the body of the message. I'm not sure what the right solution is. Is there some kind of quoting convention that ssmtp understands? I'm attaching /etc/profile since it contains the offending definition of PS1 and it's hard to get right in the body of the message. This part ends up in the header: X-Cron-Env: X-Cron-Env: X-Cron-Env: [rest of environment variables snipped...] > > > USE_SIGCHLD is now left undefined in compat.h to get > > > rid of a syslog message about the mail command failing. > > > > Why? Isn't a syslog message what we want if the mail command fails? > > The message will be there if needed. Currently it can be > there even when mail succeeds (wait() can return -1). Thank you. -DB -- David Byron dbyron AT everdream DOT com Everdream http://www.everdream.com 6591 Dumbarton Circle voice:(510)818-5550 Fremont, CA 94555 fax:(510)818-5510 ------_=_NextPart_000_01C3036E.3F3C05D0 Content-Type: application/octet-stream; name="profile" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="profile" # Some resources...=0A= =0A= # Customizing Your Shell: = http://www.dsl.org/cookbook/cookbook_5.html#SEC69=0A= # Consistent BackSpace and Delete Configuration:=0A= # http://www.ibb.net/~anne/keyboard.html=0A= =0A= # Setup some default paths. Note that this order will allow user = installed=0A= # software to override 'system' software=0A= PATH=3D"/usr/local/bin:/usr/bin:/bin:$PATH"=0A= =0A= # Set the user id=0A= USER=3D"`id -un`"=0A= =0A= # Set the USER's home directory=0A= if [ -z "$HOME" ]; then=0A= HOME=3D"/home/$USER"=0A= fi=0A= =0A= # If the home directory doesn't exist, create it.=0A= if [ ! -d "$HOME" ]; then=0A= mkdir -p "$HOME"=0A= # copy skeleton files=0A= cp -a /etc/skel/. $HOME=0A= fi=0A= =0A= # Export home and user for other scripts to use=0A= export HOME USER=0A= =0A= # run all of the profile.d scripts=0A= for i in /etc/profile.d/*.sh ; do=0A= if [ -f $i ]; then=0A= . $i=0A= fi=0A= done=0A= =0A= # default to unix make mode=0A= export MAKE_MODE=3Dunix=0A= =0A= # it is recommended that cvs uses ssh for it's remote shell = environment=0A= export CVS_RSH=3D/bin/ssh=0A= =0A= # Patches to Cygwin always appreciated ;)=0A= #export CVSROOT=3D:pserver:anoncvs AT sources DOT redhat DOT com:/cvs/src=0A= =0A= # Set a HOSTNAME variable to the host name in lower case letters=0A= export HOSTNAME=3D`hostname | tr '[A-Z]' '[a-z]'`=0A= =0A= # set a default prompt of: user AT host current_directory=0A= export PS1=3D'\[\033]0;\w\007=0A= \033[32m\]\u@\h \[\033[33m\w\033[0m\]=0A= $ '=0A= =0A= # uncomment to use the terminal colours set in DIR_COLOR=0A= # eval `dircolors -b /etc/DIR_COLOR`=0A= =0A= # default to removing the write permission for group and other=0A= # (files normally created with mode 777 become 755; files created = with=0A= # mode 666 become 644)=0A= umask 022=0A= =0A= # make sure we start in home=0A= cd "$HOME"=0A= ------_=_NextPart_000_01C3036E.3F3C05D0 Content-Type: text/plain; name="cygcheck.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="cygcheck.txt" Cygwin Win95/NT Configuration Diagnostics Current System Time: Tue Apr 15 09:40:26 2003 Windows XP Professional Ver 5.1 Build 2600 Service Pack 1 Path: C:\utils\cygwin\usr\local\bin C:\utils\cygwin\bin C:\utils\cygwin\bin c:\utils\ActivePerl\bin\ c:\WINDOWS\system32 c:\WINDOWS c:\WINDOWS\System32\Wbem c:\Program Files\Microsoft SQL Server\80\Tools\BINN c:\Program Files\Microsoft Visual Studio .NET\Vc7\bin c:\apps\emacs-21.2\bin C:\utils\cygwin\bin c:\utils\bin c:\utils\sysinternals C:\utils\cygwin\bin\id.exe output (nontsec) UID: 11978(DByron) GID: 18(SYSTEM) 18(SYSTEM) C:\utils\cygwin\bin\id.exe output (ntsec) UID: 11978(DByron) GID: 18(SYSTEM) 544(Administrators) 545(Users) =20 10513(mkgroup_l_d) SysDir: C:\WINDOWS\System32 WinDir: C:\WINDOWS HOME =3D `c:\home\dbyron' MAKE_MODE =3D `unix' PWD =3D `/cygdrive/c/home/dbyron' USER =3D `DByron' ALLUSERSPROFILE =3D `C:\Documents and Settings\All Users' APPDATA =3D `C:\Documents and Settings\DByron\Application Data' COMMONPROGRAMFILES =3D `C:\Program Files\Common Files' COMPUTERNAME =3D `DBYRON' COMSPEC =3D `C:\WINDOWS\system32\cmd.exe' CVS_RSH =3D `/bin/ssh' HOMEDRIVE =3D `C:' HOMEPATH =3D `\Documents and Settings\DByron' HOSTNAME =3D `dbyron' INCLUDE =3D `C:\Program Files\Microsoft Visual Studio = .NET\FrameworkSDK\include\' LIB =3D `C:\Program Files\Microsoft Visual Studio = .NET\FrameworkSDK\Lib\' LOGONSERVER =3D `\\PRIMARY' MAILTO =3D `dbyron AT everdream DOT com' MANPATH =3D `:/usr/ssl/man' MA_AGENT =3D `c:\svctools\softmgmt\rstate.exe' NUMBER_OF_PROCESSORS =3D `1' OLDPWD =3D `/etc' OS =3D `Windows_NT' PATHEXT =3D `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH' PROCESSOR_ARCHITECTURE =3D `x86' PROCESSOR_IDENTIFIER =3D `x86 Family 6 Model 8 Stepping 6, = GenuineIntel' PROCESSOR_LEVEL =3D `6' PROCESSOR_REVISION =3D `0806' PROGRAMFILES =3D `C:\Program Files' PROMPT =3D `$P$G' PS1 =3D `\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' SESSIONNAME =3D `Console' SHLVL =3D `1' SYSTEMDRIVE =3D `C:' SYSTEMROOT =3D `C:\WINDOWS' TEMP =3D `c:\DOCUME~1\DByron\LOCALS~1\Temp' TERM =3D `cygwin' TMP =3D `c:\DOCUME~1\DByron\LOCALS~1\Temp' USERDOMAIN =3D `EVERDREAM' USERNAME =3D `DByron' USERPROFILE =3D `C:\Documents and Settings\DByron' VSCOMNTOOLS =3D `"C:\Program Files\Microsoft Visual Studio = .NET\Common7\Tools\"' WINDIR =3D `C:\WINDOWS' _ =3D `/usr/bin/cygcheck' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) =3D `/cygdrive' cygdrive flags =3D 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) =3D `C:\utils\cygwin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) =3D `C:\utils\cygwin/bin' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) =3D `C:\utils\cygwin/lib' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts = v2\/usr/X11R6/lib/X11/fonts (default) =3D `C:\utils\cygwin\usr\X11R6\lib\X11\fonts' flags =3D 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options a: fd N/A N/A =20 c: hd NTFS 38177Mb 31% CP CS UN PA FC =20 d: cd N/A N/A =20 C:\utils\cygwin / = system binmode C:\utils\cygwin/bin /usr/bin = system binmode C:\utils\cygwin/lib /usr/lib = system binmode C:\utils\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts = system binmode . /cygdrive = system binmode,cygdrive Found: C:\utils\cygwin\bin\awk.exe Found: C:\utils\cygwin\bin\bash.exe Found: C:\utils\cygwin\bin\cat.exe Found: C:\utils\cygwin\bin\cp.exe Not Found: cpp (good!) Found: C:\utils\cygwin\bin\find.exe Not Found: gcc Found: C:\utils\cygwin\bin\gdb.exe Found: C:\utils\cygwin\bin\grep.exe Found: C:\utils\cygwin\bin\ld.exe Found: C:\utils\cygwin\bin\ls.exe Found: C:\utils\cygwin\bin\make.exe Found: C:\utils\cygwin\bin\mv.exe Found: C:\utils\cygwin\bin\rm.exe Found: C:\utils\cygwin\bin\sed.exe Found: C:\utils\cygwin\bin\sh.exe Found: C:\utils\cygwin\bin\tar.exe 58k 2002/05/07 C:\utils\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygbz2-1.dll" v0.0 ts=3D2002/5/6 23:33 848k 2003/04/11 C:\utils\cygwin\bin\cygcrypto-0.9.7.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygcrypto-0.9.7.dll" v0.0 ts=3D2003/4/11 3:33 645k 2003/04/11 C:\utils\cygwin\bin\cygcrypto.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygcrypto.dll" v0.0 ts=3D2003/4/11 3:37 380k 2002/07/24 C:\utils\cygwin\bin\cygdb-3.1.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygdb-3.1.dll" v0.0 ts=3D2002/7/24 9:24 487k 2002/07/24 C:\utils\cygwin\bin\cygdb_cxx-3.1.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygdb_cxx-3.1.dll" v0.0 ts=3D2002/7/24 9:25 45k 2001/04/25 C:\utils\cygwin\bin\cygform5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform5.dll" v0.0 ts=3D2001/4/24 22:28 35k 2002/01/09 C:\utils\cygwin\bin\cygform6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform6.dll" v0.0 ts=3D2002/1/8 22:03 76k 2003/03/09 C:\utils\cygwin\bin\cygform7.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygform7.dll" v0.0 ts=3D2003/3/9 12:51 28k 2003/03/22 C:\utils\cygwin\bin\cyggdbm-3.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cyggdbm-3.dll" v0.0 ts=3D2003/3/22 14:19 19k 2003/03/22 C:\utils\cygwin\bin\cyggdbm.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cyggdbm.dll" v0.0 ts=3D2002/2/19 19:05 15k 2003/03/22 C:\utils\cygwin\bin\cyggdbm_compat-3.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cyggdbm_compat-3.dll" v0.0 ts=3D2003/3/22 14:22 17k 2001/06/28 C:\utils\cygwin\bin\cyghistory4.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cyghistory4.dll" v0.0 ts=3D2001/1/6 20:34 20k 2002/10/10 C:\utils\cygwin\bin\cyghistory5.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cyghistory5.dll" v0.0 ts=3D2002/10/10 10:28 929k 2002/06/24 C:\utils\cygwin\bin\cygiconv-2.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygiconv-2.dll" v0.0 ts=3D2002/6/24 11:24 22k 2001/12/13 C:\utils\cygwin\bin\cygintl-1.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygintl-1.dll" v0.0 ts=3D2001/12/13 1:28 28k 2002/09/20 C:\utils\cygwin\bin\cygintl-2.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygintl-2.dll" v0.0 ts=3D2002/9/19 20:13 21k 2001/06/20 C:\utils\cygwin\bin\cygintl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygintl.dll" v0.0 ts=3D2001/6/20 10:09 26k 2001/04/25 C:\utils\cygwin\bin\cygmenu5.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu5.dll" v0.0 ts=3D2001/4/24 22:27 20k 2002/01/09 C:\utils\cygwin\bin\cygmenu6.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu6.dll" v0.0 ts=3D2002/1/8 22:03 48k 2003/03/09 C:\utils\cygwin\bin\cygmenu7.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygmenu7.dll" v0.0 ts=3D2003/3/9 12:51 156k 2001/04/25 C:\utils\cygwin\bin\cygncurses++5.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygncurses++5.dll" v0.0 ts=3D2001/4/24 22:29 175k 2002/01/09 C:\utils\cygwin\bin\cygncurses++6.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygncurses++6.dll" v0.0 ts=3D2002/1/8 22:03 226k 2001/04/25 C:\utils\cygwin\bin\cygncurses5.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygncurses5.dll" v0.0 ts=3D2001/4/24 22:17 202k 2002/01/09 C:\utils\cygwin\bin\cygncurses6.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygncurses6.dll" v0.0 ts=3D2002/1/8 22:03 284k 2003/03/09 C:\utils\cygwin\bin\cygncurses7.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygncurses7.dll" v0.0 ts=3D2003/3/9 12:50 15k 2001/04/25 C:\utils\cygwin\bin\cygpanel5.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygpanel5.dll" v0.0 ts=3D2001/4/24 22:27 12k 2002/01/09 C:\utils\cygwin\bin\cygpanel6.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygpanel6.dll" v0.0 ts=3D2002/1/8 22:03 31k 2003/03/09 C:\utils\cygwin\bin\cygpanel7.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygpanel7.dll" v0.0 ts=3D2003/3/9 12:50 63k 2003/04/11 C:\utils\cygwin\bin\cygpcre.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygpcre.dll" v0.0 ts=3D2003/4/11 1:31 61k 2003/04/11 C:\utils\cygwin\bin\cygpcreposix.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygpcreposix.dll" v0.0 ts=3D2003/4/11 1:31 1005k 2003/03/30 C:\utils\cygwin\bin\cygperl5_8_0.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygperl5_8_0.dll" v0.0 ts=3D2003/3/30 7:39 22k 2002/06/09 C:\utils\cygwin\bin\cygpopt-0.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygpopt-0.dll" v0.0 ts=3D2002/6/8 22:45 108k 2001/06/28 C:\utils\cygwin\bin\cygreadline4.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygreadline4.dll" v0.0 ts=3D2001/1/6 20:34 127k 2002/10/10 C:\utils\cygwin\bin\cygreadline5.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygreadline5.dll" v0.0 ts=3D2002/10/10 10:28 176k 2003/04/11 C:\utils\cygwin\bin\cygssl-0.9.7.dll - os=3D4.0 = img=3D1.0 sys=3D4.0 "cygssl-0.9.7.dll" v0.0 ts=3D2003/4/11 3:33 165k 2003/04/11 C:\utils\cygwin\bin\cygssl.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygssl.dll" v0.0 ts=3D2003/4/11 3:37 50k 2002/03/12 C:\utils\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygz.dll" v0.0 ts=3D2002/3/11 20:38 948k 2003/03/18 C:\utils\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 = sys=3D4.0 "cygwin1.dll" v0.0 ts=3D2003/3/18 6:20 Cygwin DLL version info: DLL version: 1.3.22 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 78 Shared data: 3 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix:=20 Build date: Tue Mar 18 09:20:11 EST 2003 CVS tag: dontuse-21 Shared id: cygwin1S3 Cygwin Package Information Last downloaded files to: C:\archive\cygwin Last downloaded files from: http://mirror.averse.net/cygwin Package Version _update-info-dir 00160-1 ash 20020731-1 base-files 1.3-1 base-passwd 1.1-1 bash 2.05b-9 bc 1.06-1 binutils 20030307-1 bzip2 1.0.2-2 chkconfig 1.2.24h-1 clear 1.0-1 cron 3.0.1-7 crypt 1.0-1 cygrunsrv 0.95-1 cygutils 1.1.3-1 cygwin 1.3.22-1 diffutils 2.8.1-1 dpkg 1.10.4-2 file 3.39-1 fileutils 4.1-1 findutils 4.1.7-4 gawk 3.1.2-2 gcc2 2.95.3-10 gdb 20030303-1 gdbm 1.8.0-5 gettext 0.11.5-1 grep 2.5-1 groff 1.18.1-2 gzip 1.3.3-4 inetutils 1.3.2-20 initscripts 0.9-1 less 378-1 libbz2_1 1.0.2-2 libdb3.1 3.1.17-2 libgdbm 1.8.0-5 libgdbm-devel 1.8.0-5 libgdbm3 1.8.3-1 libiconv2 1.8-2 libintl 0.10.38-3 libintl1 0.10.40-1 libintl2 0.11.5-1 libncurses5 5.2-1 libncurses6 5.2-8 libncurses7 5.3-1 libpopt0 1.6.4-4 libreadline4 4.1-2 libreadline5 4.3-2 login 1.8-1 m4 1.4-1 make 3.79.1-7 man 1.5j-2 mingw-runtime 2.4-1 mktemp 1.4-1 more 2.11o-1 ncurses 5.3-1 openssl 0.9.7b-1 openssl096 0.9.6j-1 pcre 4.1-1 perl 5.8.0-2 readline 4.3-2 sed 4.0.5-1 sh-utils 2.0.15-3 shutdown 1.2-2 ssmtp 2.38.7-3 sysvinit 2.84-3 tar 1.13.25-1 tcltk 20030214-1 termcap 20020930-1 terminfo 5.3-2 texinfo 4.2-4 textutils 2.0.21-1 time 1.7-1 unzip 5.50-2 w32api 2.3-1 which 1.5-1 zip 2.3-2 zlib 1.1.4-1 Use -h to see help about each section ------_=_NextPart_000_01C3036E.3F3C05D0 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------_=_NextPart_000_01C3036E.3F3C05D0--