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 Date: Mon, 10 Oct 2005 15:25:24 +0200 (W. Europe Daylight Time) From: Orfeo Da Via To: Igor Pechtchanski cc: cygwin AT cygwin DOT com Subject: Re: Cron problem In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Status: Clean On Mon, 10 Oct 2005, Igor Pechtchanski wrote: > > $ uname > > Linux > > > > $ export VISUAL=zile > > > > $ crontab -e > > > > ...edit the file.. > > Hmm, one detail that's missing: when was the above done? Before 8:00, or > after? About at 8.45, all the commands in the example are sequentially. > Since you're testing cron, I would suggest starting with > > */5 * * * * /bin/date >> /home/calox/tmp/date.out 2>&1 > > and waiting 5 minutes. If /home/calox/tmp is still empty, then we'll > debug further. In my linux box the my home is /home/calox, in Cygwin my home is /home/micekiller, then the crontab is $ crontab -l # DO NOT EDIT THIS FILE - edit the master and reinstall. # (/tmp/crontab.592 installed on Mon Oct 10 14:51:37 2005) # (Cron version -- $Id: crontab.c,v 1.8 2004/12/21 16:14:41 corinna Exp $) */5 * * * * /bin/date >> /home/micekiller/tmp/date.out 2>&1 so, I waited for 10 min but ~/tmp (/home/micekiller/tmp) is empty. > A few obvious questions: does /home/calox/tmp exist in Cygwin? What are > its permissions (do an "ls -ld")? $ ls -ld ~/tmp/ drwxrwxrwx+ 2 micekiller None 0 Oct 8 11:03 /home/micekiller/tmp/ Here the group in None, it's OK? (in Linux is the usergroup)...maybe in Cygwin isn't possible set the group? > Are you checking /home/calox/tmp or > ~/tmp (IOW, is your $HOME set to /home/calox)? my $HOME is $ echo $HOME /home/micekiller and I check /home/micekiller/tmp > And, finally, do you have > SHELL set in the Windows environment, and if so, to what value? Mmmm, in 'Control Panel-> System -> Advanced -> Environment variable' the SHELL variable *not* exists, but in Cygwin $ echo $SHELL /bin/bash If usefull, my environment var is (in win2000 cmd.exe) C:\>set !C:='C:\cygwin\bin' ALLUSERSPROFILE='C:\Documents and Settings\All Users' APPDATA='C:\Documents and Settings\micekiller\Application Data' BASH=/usr/bin/bash BASH_ARGC=() BASH_ARGV=() BASH_LINENO=() BASH_SOURCE=() BASH_VERSINFO=([0]="3" [1]="00" [2]="16" [3]="11" [4]="release" [5]="i686-pc-cygwin") BASH_VERSION='3.00.16(11)-release' COMMONPROGRAMFILES='C:\Program Files\Common Files' COMPUTERNAME=SN2307128 COMSPEC='C:\WINNT\system32\cmd.exe' CVSEDITOR=me CVSROOT=:pserver:dao AT cvs DOT microline DOT eu/mnt/dati/home/cvs CVS_RSH=/bin/ssh CYGWIN=ntsec DIRSTACK=() EDITOR=me EUID=1000 GROUPS=() GTK_BASEPATH='C:\Program Files\Common Files\GTK\2.4' HISTFILE=/home/micekiller/.bash_history HISTFILESIZE=500 HISTSIZE=500 HOME=/home/micekiller HOMEDRIVE=C: HOMEPATH='\' HOSTNAME=sn2307128 HOSTTYPE=i686 IFS=$' \t\n' INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info: LOGONSERVER='\\SN2307128' MACHTYPE=i686-pc-cygwin MAILTO=orfeo DOT davia AT microline-srl DOT com MAKE_MODE=unix MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man::/usr/ssl/man NUMBER_OF_PROCESSORS=1 OPTERR=1 OPTIND=1 OS=Windows_NT OS2LIBPATH='C:\WINNT\system32\os2\dll;' OSTYPE=cygwin PATH='/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/mnt/c/imagemagick:/usr/bin:/mnt/c/texmf/miktex/bin:/mnt/c/WINNT/system32:/mnt/c/WINNT:/mnt/c/shared:/mnt/c/WINNT/Microsoft.NET/Framework/v1.1.4322/:/mnt/c/gs/gs8.11/bin:/mnt/c/GnuWin32/bin:/mnt/c/Pico:/mnt/c/Program Files/Support Tools/:.:/cygdriver/c/texUtils/latex2html/bin:/cygdriver/c/Mono/bin:/opt/dar' PATHEXT='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.tcl' PIPESTATUS=([0]="0") PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig PPID=1 PRINTER='\\mlx\Lexmark' PROCESSOR_ARCHITECTURE=x86 PROCESSOR_IDENTIFIER='x86 Family 15 Model 2 Stepping 7, GenuineIntel' PROCESSOR_LEVEL=15 PROCESSOR_REVISION=0207 PROGRAMFILES='C:\Program Files' PROMPT='$P$G' PS1=$'\\[\\033]0;\\w\\007\n\\033[32m\\]\\u@\\h \\[\\033[33m\\w\\033[0m\\]\n$ ' PS2='> ' PS4='+ ' SHELL=/bin/bash SHELLOPTS=braceexpand:emacs:hashall:histexpand:history:interactive-comments:monitor SHLVL=1 SYSTEMDRIVE=C: SYSTEMROOT='C:\WINNT' TEMP=/mnt/c/DOCUME~1/MICEKI~1/LOCALS~1/Temp TERM=cygwin TEXDOCVIEW_dvi='cygstart %s' TEXDOCVIEW_html='cygstart %s' TEXDOCVIEW_pdf='cygstart %s' TEXDOCVIEW_ps='cygstart %s' TEXDOCVIEW_txt='cygstart %s' TMP=/mnt/c/DOCUME~1/MICEKI~1/LOCALS~1/Temp UID=1000 USER=micekiller USERDOMAIN=SN2307128 USERNAME=micekiller USERPROFILE='C:\Documents and Settings\micekiller' VISUAL=jmacs WINDIR='C:\WINNT' Thanks... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/