* RE: cygwin cron
@ 2002-10-21 17:21 lhall
0 siblings, 0 replies; 10+ messages in thread
From: lhall @ 2002-10-21 17:21 UTC (permalink / raw)
To: smithesh, maharig, cygwin
I'm afraid that what you've provided only tells us what you're
doing and how you're doing it. Unfortunately, we don't know anything
else about your system or your setup. Make sure you've reviewed the
email archives for cron issues and resolutions and that you've reviewed
the cron and login READMEs (at least) as well as the user guide
(particularly
the stuff on permissions if you're running NT/W2K/XP). Oh, and a review of
the FAQ may be worthwhile as well. You never know what tid-bits are lurking
in the answers to even seemingly unrelated questions. If you don't find
something useful in all that which resolves your problem, please provide
the output of cygcheck -s -r -v as an attachment as well as the steps you
took to configure cron to the list. Someone may be able to spot your
problem given that.
Good luck,
Larry
Original Message:
-----------------
From: Smithesh Ramachandran smithesh@ticketmaster.com
Date: Mon, 21 Oct 2002 13:53:12 -0700
To: maharig@idirect.net, cygwin@cygwin.com
Subject: cygwin cron
Hi ,
I'm trying to scp (without pass phrases) using dsa on cygwin cron.
scp works fine, but not within cron.
this is what I'm doing -
crontab -e
00 * * * * /usr/bin/perl /home/admin/perl/test.pl >> /tmp/test.txt
and this is what test.pl has:
#!/usr/bin/perl
system('scp -P 9989 -oProtocol=2 -r /cygdrive/b/IN
smithesh@172.26.20.34:tmp/.');
When I run test.pl by itself on cygwin command line, it works (meaning
it does the scp), but not within cron.
Also tried putting scp stmt itself within cron and didn't work either.
I also tried removing, installing, stopping and starting cron using
cygrunsrv. cron in general works, but is not doing the above scp stuff.
I'm not sure if I'm doing anything wrong.. Help..
Thanks,
Smithesh.
--
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/
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* CYGWIN & CRON
@ 2004-05-18 14:22 izzogabriele
2004-05-18 14:35 ` Dave Korn
0 siblings, 1 reply; 10+ messages in thread
From: izzogabriele @ 2004-05-18 14:22 UTC (permalink / raw)
To: cygwin
Hello world
I have started the cron service under cygwin with the command:
cygrunsrv -I cron -p /usr/sbin/cron -a -D
cygrunsrv -S cron
the service is succesfully started (reported in the log file)
I have edit the crontab file but it seems not working.
Can you help me please?
Thank you very much
Gabriele
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: cygwin cron
@ 2002-10-23 9:00 Harig, Mark A.
0 siblings, 0 replies; 10+ messages in thread
From: Harig, Mark A. @ 2002-10-23 9:00 UTC (permalink / raw)
To: smithesh, cygwin
From /usr/doc/Cygwin/cron.README:
3.0.1-5:
--------
Crontab now changes group membership to be SYSTEM on the crontab
files and sets the permissions to 640. That should allow cron
to work immediately with the crontab files created by crontab.
Note that this requires that /etc/group has been created and
contains the default SYSTEM entry, gid 18. DON'T CHANGE THAT!
So, you might check both the ownership and permissions of your
/var/cron/tab/<userid> file. 'SYSTEM' should be the group membership,
and it should have read permission. Also, of course, SYSTEM needs to be
listed in your /etc/group file with the gid value '18'.
Also, instead of running a perl script, start with a simple 'date'
command so that you're debugging 'cron' instead of debugging 'cron' and
your perl environment, i.e., try a cron entry such as:
* * * * * /usr/bin/date >> /tmp/dateit.txt
If you can get that to work, then you can address the perl script
problem separately.
> -----Original Message-----
> From: Smithesh Ramachandran [mailto:smithesh@ticketmaster.com]
> Sent: Tuesday, October 22, 2002 3:10 PM
> To: cygwin@cygwin.com
> Subject: Re: cygwin cron
>
>
> Igor,
> Thanks. $UID was empty and I set $UID to admin uid. $HOME
> was good.
> But still no luck with cron.
>
> Instead of using cron, for the current purpose, simulated
> the same behavior
> within the perl script, just by sleeping for an hour or so,
> and then invoking
> scp. It works okay, and for now this is good enough.
>
> Thanks again for your help.
> Smithesh.
>
>
> Igor Pechtchanski wrote:
>
> > Smithesh,
> >
> > The fact that scp works for you from the command line
> doesn't necessarily
> > mean it will work from cron. Ssh and scp look in
> $HOME/.ssh for public
> > keys. Cron runs as SYSTEM, with a blank (or default)
> environment. Even
> > if you set the effective uid to you (which you actually may
> not be doing,
> > from what I could see), scp will not know where to look for
> the public
> > keys if $HOME is not set to your home directory, and
> therefore will not
> > try to authenticate you. Please make sure that 1) cron
> switches to your
> > uid, and 2) your $HOME is set correctly. You can do that
> by scheduling an
> > appropriate shell script to run through cron. If this is
> indeed your
> > problem, you could define the appropriate environment
> before running scp
> > in your perl script (or a shell script).
> > Igor
> >
> > On Mon, 21 Oct 2002, Smithesh Ramachandran wrote:
> >
> > > Thanks. I did look at the FAQ s'. I haven't seen any of
> these specifics.
> > >
> > > I'm trying to scp files through cygwin cron (running on
> windows 2000) to
> > > Linux(redhat 72 kernal 2.4.7-10). And I'm running linux on pIII.
> > >
> > > The open_ssh version on Linux is OpenSSH_2.9p2. And I run
> sshd on linux on
> > > ports 9989 through 9999 (i'm not using the default port
> 22). The version on
> > > Cygwin is OpenSSH_3.4p1. I don't think the problem is
> with ssh/scp. Because
> > > it works fine on cygwin, and I'm able to scp files without giving
> > > passphrases (but using dsa public/private keys). But scp
> itself is not
> > > working through cygwin cron.
> > >
> > > I have done the following to install and start:
> > >
> > > $cygrunsrv -I cron -p /usr/sbin/cron -a -D
> > > $cygrunsrv -S cron
> > >
> > > Did the following on permission:
> > > $ chmod 1777 /var/cron
> > > $ chmod 1777 /var/cron/tabs
> > >
> > >
> > > Cron is running : (see below)
> > > $ ps -ef|grep cron
> > > SYSTEM 536 1336 ? 10:24:55 /usr/sbin/cron
> > >
> > > Attaching the output for cygcheck -r -s -v
> > >
> > > Please let me know if you need anything more.
> > >
> > > Thanks,
> > > Smithesh.
> > >
> > >
> > > -----Original Message-----
> > > From: lhall@pop.ma.ultranet.com [mailto:lhall@pop.ma.ultranet.com]
> > > Sent: Monday, October 21, 2002 3:21 PM
> > > To: smithesh@ticketmaster.com; maharig@idirect.net;
> cygwin@cygwin.com
> > > Subject: RE: cygwin cron
> > >
> > >
> > > I'm afraid that what you've provided only tells us what you're
> > > doing and how you're doing it. Unfortunately, we don't
> know anything
> > > else about your system or your setup. Make sure you've
> reviewed the
> > > email archives for cron issues and resolutions and that
> you've reviewed
> > > the cron and login READMEs (at least) as well as the user guide
> > > (particularly
> > > the stuff on permissions if you're running NT/W2K/XP).
> Oh, and a review of
> > > the FAQ may be worthwhile as well. You never know what
> tid-bits are lurking
> > > in the answers to even seemingly unrelated questions. If
> you don't find
> > > something useful in all that which resolves your problem,
> please provide
> > > the output of cygcheck -s -r -v as an attachment as well
> as the steps you
> > > took to configure cron to the list. Someone may be able
> to spot your
> > > problem given that.
> > >
> > > Good luck,
> > >
> > > Larry
> > >
> > > Original Message:
> > > -----------------
> > > From: Smithesh Ramachandran smithesh@ticketmaster.com
> > > Date: Mon, 21 Oct 2002 13:53:12 -0700
> > > To: maharig@idirect.net, cygwin@cygwin.com
> > > Subject: cygwin cron
> > >
> > >
> > > Hi ,
> > > I'm trying to scp (without pass phrases) using dsa on cygwin cron.
> > > scp works fine, but not within cron.
> > >
> > > this is what I'm doing -
> > >
> > > crontab -e
> > >
> > > 00 * * * * /usr/bin/perl /home/admin/perl/test.pl >>
> /tmp/test.txt
> > >
> > > and this is what test.pl has:
> > >
> > > #!/usr/bin/perl
> > >
> > > system('scp -P 9989 -oProtocol=2 -r /cygdrive/b/IN
> > > smithesh@172.26.20.34:tmp/.');
> > >
> > > When I run test.pl by itself on cygwin command line, it
> works (meaning
> > > it does the scp), but not within cron.
> > >
> > > Also tried putting scp stmt itself within cron and didn't
> work either.
> > > I also tried removing, installing, stopping and starting
> cron using
> > > cygrunsrv. cron in general works, but is not doing the
> above scp stuff.
> > > I'm not sure if I'm doing anything wrong.. Help..
> > > Thanks,
> > > Smithesh.
> >
> > --
> > http://cs.nyu.edu/~pechtcha/
> > |\ _,,,---,,_ pechtcha@cs.nyu.edu
> > ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
> > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
> > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
> >
> > "Water molecules expand as they grow warmer" (C) Popular
> Science, Oct'02, p.51
>
>
> --
> 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/
>
>
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: cygwin cron
@ 2002-10-21 18:29 Smithesh Ramachandran
2002-10-21 18:35 ` Igor Pechtchanski
0 siblings, 1 reply; 10+ messages in thread
From: Smithesh Ramachandran @ 2002-10-21 18:29 UTC (permalink / raw)
To: 'lhall@rfk.com', maharig, cygwin
[-- Attachment #1: Type: text/plain, Size: 3389 bytes --]
Thanks. I did look at the FAQ s'. I haven't seen any of these specifics.
I'm trying to scp files through cygwin cron (running on windows 2000) to
Linux(redhat 72 kernal 2.4.7-10). And I'm running linux on pIII.
The open_ssh version on Linux is OpenSSH_2.9p2. And I run sshd on linux on
ports 9989 through 9999 (i'm not using the default port 22). The version on
Cygwin is OpenSSH_3.4p1. I don't think the problem is with ssh/scp. Because
it works fine on cygwin, and I'm able to scp files without giving
passphrases (but using dsa public/private keys). But scp itself is not
working through cygwin cron.
I have done the following to install and start:
$cygrunsrv -I cron -p /usr/sbin/cron -a -D
$cygrunsrv -S cron
Did the following on permission:
$ chmod 1777 /var/cron
$ chmod 1777 /var/cron/tabs
Cron is running : (see below)
$ ps -ef|grep cron
SYSTEM 536 1336 ? 10:24:55 /usr/sbin/cron
Attaching the output for cygcheck -r -s -v
Please let me know if you need anything more.
Thanks,
Smithesh.
-----Original Message-----
From: lhall@pop.ma.ultranet.com [mailto:lhall@pop.ma.ultranet.com]
Sent: Monday, October 21, 2002 3:21 PM
To: smithesh@ticketmaster.com; maharig@idirect.net; cygwin@cygwin.com
Subject: RE: cygwin cron
I'm afraid that what you've provided only tells us what you're
doing and how you're doing it. Unfortunately, we don't know anything
else about your system or your setup. Make sure you've reviewed the
email archives for cron issues and resolutions and that you've reviewed
the cron and login READMEs (at least) as well as the user guide
(particularly
the stuff on permissions if you're running NT/W2K/XP). Oh, and a review of
the FAQ may be worthwhile as well. You never know what tid-bits are lurking
in the answers to even seemingly unrelated questions. If you don't find
something useful in all that which resolves your problem, please provide
the output of cygcheck -s -r -v as an attachment as well as the steps you
took to configure cron to the list. Someone may be able to spot your
problem given that.
Good luck,
Larry
Original Message:
-----------------
From: Smithesh Ramachandran smithesh@ticketmaster.com
Date: Mon, 21 Oct 2002 13:53:12 -0700
To: maharig@idirect.net, cygwin@cygwin.com
Subject: cygwin cron
Hi ,
I'm trying to scp (without pass phrases) using dsa on cygwin cron.
scp works fine, but not within cron.
this is what I'm doing -
crontab -e
00 * * * * /usr/bin/perl /home/admin/perl/test.pl >> /tmp/test.txt
and this is what test.pl has:
#!/usr/bin/perl
system('scp -P 9989 -oProtocol=2 -r /cygdrive/b/IN
smithesh@172.26.20.34:tmp/.');
When I run test.pl by itself on cygwin command line, it works (meaning
it does the scp), but not within cron.
Also tried putting scp stmt itself within cron and didn't work either.
I also tried removing, installing, stopping and starting cron using
cygrunsrv. cron in general works, but is not doing the above scp stuff.
I'm not sure if I'm doing anything wrong.. Help..
Thanks,
Smithesh.
--
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/
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
[-- Attachment #2: bt --]
[-- Type: application/octet-stream, Size: 23444 bytes --]
Cygwin Win95/NT Configuration Diagnostics
Current System Time: Mon Oct 21 16:03:55 2002
Windows 2000 Professional Ver 5.0 Build 2195 Service Pack 2
Path: C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\WINNT\system32
c:\WINNT
c:\WINNT\System32\Wbem
c:\ORANT\BIN
c:\Program Files\Resource Pro Kit\
c:\Program Files\Microsoft SQL Server\80\Tools\BINN
C:\cygwin\usr\X11R6\bin
SysDir: C:\WINNT\System32
WinDir: C:\WINNT
HOME = `C:\cygwin\home\admin'
MAKE_MODE = `unix'
PWD = `/home/admin/perl'
USER = `admin'
ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
APPDATA = `C:\Documents and Settings\smithesh ramachandra\Application Data'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `TMLA-SRAMACHAND'
COMSPEC = `C:\WINNT\system32\cmd.exe'
DISPLAY = `lax1stsdb1.prod.tmcs:2.0'
HOMEDRIVE = `C:'
HOMEPATH = `\'
LOGONSERVER = `\\LAMAIL'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/admin'
OS2LIBPATH = `C:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 3, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0803'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
\033[32m\]\u@\h \[\033[33m\w\033[0m\]
$ '
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINNT'
TEMP = `c:\DOCUME~1\SMITHE~1\Temp'
TERM = `cygwin'
TEXMF = `{/usr/share/lilypond/1.6.4,/usr/share/texmf}'
TMP = `c:\DOCUME~1\SMITHE~1\Temp'
USERDOMAIN = `NAMERICA'
USERNAME = `Smithesh'
USERPROFILE = `C:\Documents and Settings\smithesh ramachandra'
WINDIR = `C:\WINNT'
_ = `/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
(default) = `/cygdrive'
cygdrive flags = 0x00000022
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) = `/cygdrive'
cygdrive flags = 0x00000022
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
(default) = `C:\cygwin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
(default) = `C:\cygwin/bin'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
(default) = `C:\cygwin/lib'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/X11R6/lib/X11/fonts
(default) = `C:\cygwin\usr\X11R6\lib\X11\fonts'
flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options
a: fd N/A N/A
b: net NTFS 6651Mb 94% CP CS UN PA FC
c: hd NTFS 12882Mb 34% CP CS UN PA FC PRIMARY
d: cd N/A N/A
. /cygdrive user binmode,cygdrive
C:\cygwin / system binmode
C:\cygwin/bin /usr/bin system binmode
C:\cygwin/lib /usr/lib system binmode
C:\cygwin\usr\X11R6\lib\X11\fonts /usr/X11R6/lib/X11/fonts system binmode
. /cygdrive user binmode,cygdrive
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cpp.exe
Found: C:\cygwin\bin\find.exe
Found: C:\cygwin\bin\gcc.exe
Found: C:\cygwin\bin\gdb.exe
Found: C:\cygwin\bin\ld.exe
Found: C:\cygwin\bin\ls.exe
Found: C:\cygwin\bin\make.exe
Found: C:\cygwin\bin\sh.exe
58k 2002/05/07 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
"cygbz2-1.dll" v0.0 ts=2002/5/6 23:33
54k 2002/10/07 C:\cygwin\bin\cygbz21.0.dll - os=4.0 img=1.0 sys=4.0
"cygbz21.0.dll" v0.0 ts=2002/1/26 17:07
6k 2002/06/24 C:\cygwin\bin\cygcharset-1.dll - os=4.0 img=1.0 sys=4.0
"cygcharset-1.dll" v0.0 ts=2002/6/24 11:23
625k 2002/10/07 C:\cygwin\bin\cygcrypto.dll - os=4.0 img=1.0 sys=4.0
"cygcrypto.dll" v0.0 ts=2002/8/9 13:20
452k 2002/07/17 C:\cygwin\bin\cygcurl-2.dll - os=4.0 img=1.0 sys=4.0
"cygcurl-2.dll" v0.0 ts=2002/7/17 7:50
380k 2002/07/24 C:\cygwin\bin\cygdb-3.1.dll - os=4.0 img=1.0 sys=4.0
"cygdb-3.1.dll" v0.0 ts=2002/7/24 9:24
326k 2002/06/26 C:\cygwin\bin\cygdb2.dll - os=4.0 img=1.0 sys=4.0
"cygdb2.dll" v0.0 ts=2002/6/26 10:48
487k 2002/07/24 C:\cygwin\bin\cygdb_cxx-3.1.dll - os=4.0 img=1.0 sys=4.0
"cygdb_cxx-3.1.dll" v0.0 ts=2002/7/24 9:25
132k 2002/07/14 C:\cygwin\bin\cygexpat-0.dll - os=4.0 img=1.0 sys=4.0
"cygexpat-0.dll" v0.0 ts=2002/7/14 12:38
50k 2002/03/17 C:\cygwin\bin\cygexslt-0.dll - os=4.0 img=1.0 sys=4.0
"cygexslt-0.dll" v0.0 ts=2002/3/16 22:24
45k 2001/04/25 C:\cygwin\bin\cygform5.dll - os=4.0 img=1.0 sys=4.0
"cygform5.dll" v0.0 ts=2001/4/24 22:28
35k 2002/01/09 C:\cygwin\bin\cygform6.dll - os=4.0 img=1.0 sys=4.0
"cygform6.dll" v0.0 ts=2002/1/8 22:03
19k 2002/02/20 C:\cygwin\bin\cyggdbm.dll - os=4.0 img=1.0 sys=4.0
"cyggdbm.dll" v0.0 ts=2002/2/19 19:05
490k 2002/09/21 C:\cygwin\bin\cygguile-12.dll - os=4.0 img=1.0 sys=4.0
"cygguile-12.dll" v0.0 ts=2002/9/21 3:01
488k 2002/07/18 C:\cygwin\bin\cygguile-14.dll - os=4.0 img=1.0 sys=4.0
"cygguile-14.dll" v0.0 ts=2002/7/18 3:35
63k 2002/07/18 C:\cygwin\bin\cygguile-srfi-srfi-13-14-1.dll - os=4.0 img=1.0 sys=4.0
"cygguile-srfi-srfi-13-14-1.dll" v0.0 ts=2002/7/18 3:35
63k 2002/09/21 C:\cygwin\bin\cygguile-srfi-srfi-13-14-v-1-1.dll - os=4.0 img=1.0 sys=4.0
"cygguile-srfi-srfi-13-14-v-1-1.dll" v0.0 ts=2002/9/21 3:01
24k 2002/07/18 C:\cygwin\bin\cygguile-srfi-srfi-4-1.dll - os=4.0 img=1.0 sys=4.0
"cygguile-srfi-srfi-4-1.dll" v0.0 ts=2002/7/18 3:35
24k 2002/09/21 C:\cygwin\bin\cygguile-srfi-srfi-4-v-1-1.dll - os=4.0 img=1.0 sys=4.0
"cygguile-srfi-srfi-4-v-1-1.dll" v0.0 ts=2002/9/21 3:01
14k 2002/07/18 C:\cygwin\bin\cygguilereadline-14.dll - os=4.0 img=1.0 sys=4.0
"cygguilereadline-14.dll" v0.0 ts=2002/7/18 3:35
14k 2002/09/21 C:\cygwin\bin\cygguilereadline-v-12-12.dll - os=4.0 img=1.0 sys=4.0
"cygguilereadline-v-12-12.dll" v0.0 ts=2002/9/21 3:01
17k 2001/06/28 C:\cygwin\bin\cyghistory4.dll - os=4.0 img=1.0 sys=4.0
"cyghistory4.dll" v0.0 ts=2001/1/6 20:34
20k 2002/07/17 C:\cygwin\bin\cyghistory5.dll - os=4.0 img=1.0 sys=4.0
"cyghistory5.dll" v0.0 ts=2002/7/17 14:18
306k 2002/04/27 C:\cygwin\bin\cyghttpd.dll - os=4.0 img=1.0 sys=4.0
"cyghttpd.dll" v0.0 ts=2002/4/27 6:23
929k 2002/06/24 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
"cygiconv-2.dll" v0.0 ts=2002/6/24 11:24
22k 2002/10/07 C:\cygwin\bin\cygintl-1.dll - os=4.0 img=1.0 sys=4.0
"cygintl-1.dll" v0.0 ts=2001/12/13 1:28
23k 2002/06/24 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
"cygintl-2.dll" v0.0 ts=2002/6/23 21:54
21k 2001/06/20 C:\cygwin\bin\cygintl.dll - os=4.0 img=1.0 sys=4.0
"cygintl.dll" v0.0 ts=2001/6/20 10:09
81k 2000/12/05 C:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
"cygitcl30.dll" v0.0 ts=2000/11/25 17:43
35k 2000/12/05 C:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
"cygitk30.dll" v0.0 ts=2000/11/25 17:43
45k 2002/02/08 C:\cygwin\bin\cygjbig1.dll - os=4.0 img=1.0 sys=4.0
"cygjbig1.dll" v0.0 ts=2002/2/7 15:59
119k 2002/02/09 C:\cygwin\bin\cygjpeg6b.dll - os=4.0 img=1.0 sys=4.0
"cygjpeg6b.dll" v0.0 ts=2002/2/8 21:19
59k 2002/09/20 C:\cygwin\bin\cygkpathsea-3-3-7.dll - os=4.0 img=1.0 sys=4.0
"cygkpathsea-3-3-7.dll" v0.0 ts=2002/9/20 7:54
25k 2002/07/16 C:\cygwin\bin\cygltdl-3.dll - os=4.0 img=1.0 sys=4.0
"cygltdl-3.dll" v0.0 ts=2002/7/15 21:05
26k 2001/04/25 C:\cygwin\bin\cygmenu5.dll - os=4.0 img=1.0 sys=4.0
"cygmenu5.dll" v0.0 ts=2001/4/24 22:27
20k 2002/01/09 C:\cygwin\bin\cygmenu6.dll - os=4.0 img=1.0 sys=4.0
"cygmenu6.dll" v0.0 ts=2002/1/8 22:03
156k 2001/04/25 C:\cygwin\bin\cygncurses++5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++5.dll" v0.0 ts=2001/4/24 22:29
175k 2002/01/09 C:\cygwin\bin\cygncurses++6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses++6.dll" v0.0 ts=2002/1/8 22:03
226k 2001/04/25 C:\cygwin\bin\cygncurses5.dll - os=4.0 img=1.0 sys=4.0
"cygncurses5.dll" v0.0 ts=2001/4/24 22:17
202k 2002/01/09 C:\cygwin\bin\cygncurses6.dll - os=4.0 img=1.0 sys=4.0
"cygncurses6.dll" v0.0 ts=2002/1/8 22:03
15k 2001/04/25 C:\cygwin\bin\cygpanel5.dll - os=4.0 img=1.0 sys=4.0
"cygpanel5.dll" v0.0 ts=2001/4/24 22:27
12k 2002/01/09 C:\cygwin\bin\cygpanel6.dll - os=4.0 img=1.0 sys=4.0
"cygpanel6.dll" v0.0 ts=2002/1/8 22:03
40k 2001/11/21 C:\cygwin\bin\cygpcre.dll - os=4.0 img=1.0 sys=4.0
"cygpcre.dll" v0.0 ts=2001/11/21 14:15
39k 2001/11/21 C:\cygwin\bin\cygpcreposix.dll - os=4.0 img=1.0 sys=4.0
"cygpcreposix.dll" v0.0 ts=2001/11/21 14:15
175k 2002/07/22 C:\cygwin\bin\cygpng10.dll - os=4.0 img=1.0 sys=4.0
"cygpng10.dll" v0.0 ts=2002/7/22 8:51
179k 2002/07/22 C:\cygwin\bin\cygpng12.dll - os=4.0 img=1.0 sys=4.0
"cygpng12.dll" v0.0 ts=2002/7/22 9:03
170k 2002/01/21 C:\cygwin\bin\cygpng2.dll - os=4.0 img=1.0 sys=4.0
"cygpng2.dll" v0.0 ts=2002/1/20 17:05
22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
"cygpopt-0.dll" v0.0 ts=2002/6/8 22:45
108k 2001/06/28 C:\cygwin\bin\cygreadline4.dll - os=4.0 img=1.0 sys=4.0
"cygreadline4.dll" v0.0 ts=2001/1/6 20:34
127k 2002/07/17 C:\cygwin\bin\cygreadline5.dll - os=4.0 img=1.0 sys=4.0
"cygreadline5.dll" v0.0 ts=2002/7/17 14:18
66k 2001/11/20 C:\cygwin\bin\cygregex.dll - os=4.0 img=1.0 sys=4.0
"cygregex.dll" v0.0 ts=2001/11/20 6:44
159k 2002/08/09 C:\cygwin\bin\cygssl.dll - os=4.0 img=1.0 sys=4.0
"cygssl.dll" v0.0 ts=2002/8/9 13:20
390k 2000/12/05 C:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
"cygtcl80.dll" v0.0 ts=2000/11/25 17:39
5k 2000/12/05 C:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
10k 2000/12/05 C:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
"cygtclreg80.dll" v0.0 ts=2000/11/25 17:39
253k 2002/02/10 C:\cygwin\bin\cygtiff3.dll - os=4.0 img=1.0 sys=4.0
"cygtiff3.dll" v0.0 ts=2002/2/10 0:34
623k 2000/12/05 C:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
"cygtk80.dll" v0.0 ts=2000/11/25 17:43
25k 2002/07/14 C:\cygwin\bin\cygungif-4.dll - os=4.0 img=1.0 sys=4.0
"cygungif-4.dll" v0.0 ts=2002/7/14 7:58
633k 2002/10/07 C:\cygwin\bin\cygxml2-2.dll - os=4.0 img=1.0 sys=4.0
"cygxml2-2.dll" v0.0 ts=2002/7/21 23:29
41k 2002/01/20 C:\cygwin\bin\cygXpm-noX4.dll - os=4.0 img=1.0 sys=4.0
"cygXpm-noX4.dll" v0.0 ts=2002/1/20 10:49
46k 2002/01/20 C:\cygwin\bin\cygXpm-X4.dll - os=4.0 img=1.0 sys=4.0
"cygXpm-X4.dll" v0.0 ts=2002/1/20 10:50
152k 2002/03/17 C:\cygwin\bin\cygxslt-1.dll - os=4.0 img=1.0 sys=4.0
"cygxslt-1.dll" v0.0 ts=2002/3/16 22:19
15k 2002/03/17 C:\cygwin\bin\cygxsltbreakpoint-1.dll - os=4.0 img=1.0 sys=4.0
"cygxsltbreakpoint-1.dll" v0.0 ts=2002/3/16 22:24
50k 2002/10/07 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
"cygz.dll" v0.0 ts=2002/3/11 20:38
883k 2002/07/06 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
"cygwin1.dll" v0.0 ts=2002/7/5 23:16
Cygwin DLL version info:
DLL version: 1.3.12
DLL epoch: 19
DLL bad signal mask: 19005
DLL old termios: 5
DLL malloc env: 28
API major: 0
API minor: 54
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:
Build date: Sat Jul 6 02:16:58 EDT 2002
CVS tag: cygwin-1-3-12-1
Shared id: cygwin1S3
41k 2002/05/14 C:\cygwin\usr\X11R6\bin\cygPropList-0.dll - os=4.0 img=1.0 sys=4.0
"cygPropList-0.dll" v0.0 ts=2002/5/13 20:13
Cygwin Package Information
Last downloaded files to: C:\cygwin
Last downloaded files from: http://planetmirror.com/pub/sourceware/cygwin
Package Version
ELFIO 1.0.0-1
WindowMaker 0.80.0-2
XFree86-base 4.2.0-1
XFree86-bin 4.2.0-2
XFree86-doc 4.2.0-1
XFree86-etc 4.2.0-1
XFree86-f100 4.2.0-2
XFree86-fcyr 4.2.0-2
XFree86-fenc 4.2.0-2
XFree86-fnts 4.2.0-2
XFree86-fscl 4.2.0-2
XFree86-fsrv 4.2.0-1
XFree86-html 4.2.0-1
XFree86-jdoc 4.2.0-1
XFree86-lib 4.2.0-3
XFree86-man 4.2.0-1
XFree86-nest 4.2.0-1
XFree86-prog 4.2.0-1
XFree86-prt 4.2.0-1
XFree86-ps 4.2.0-1
XFree86-startup-scripts4.2.0-3
XFree86-vfb 4.2.0-1
XFree86-xserv 4.2.0-10
Xaw3d 1.5-1
_update-info-dir 00067-1
apache 1.3.24-5
ash 20020731-1
astyle 1.15.3-3
autoconf 2.53b-1
autoconf-devel 2.53a-1
autoconf-stable 2.13-4
automake 1.6.2-1
automake-devel 1.6.2-1
automake-stable 1.4p5-5
base-files 1.0-1
base-passwd 1.0-1
bash 2.05b-5
bc 1.06-1
binutils 20020706-2
bison 1.35-1
byacc 1.9-1
bzip2 1.0.2-2
ccache 1.9-1
cgoban 1.9.12-1
clear 1.0-1
compface 1.4-5
cpio 2.4.2
cron 3.0.1-7
crypt 1.0-1
ctags 5.2-1
curl 7.9.8-2
cvs 1.11.0-1
cygrunsrv 0.95-1
cygutils 1.1.2-1
cygwin 1.3.12-4
cygwin-doc 1.1-2
db2 2.7.7-4
db3.1 3.1.17-2
dejagnu 20010117-1
diff 1.0-1
diffutils 2.8.1-1
dpkg 1.10.4-2
ed 0.2-1
emacs 21.2-8
emacs-X11 21.2-8
emacs-el 21.2-8
enscript 1.6.3-3
exim 4.10-2
expat 1.95.4-1
expect 20010117-1
fetchmail 5.9.13-2
figlet 2.2-1
file 3.37-1
fileutils 4.1-1
findutils 4.1.7-4
flex 2.5.4-2
fortune 1.8-2
fvwm 2.4.7-2
gawk 3.1.1-3
gcc 2.95.3-5
gcc-mingw 3.2-20020817-1
gcc2 2.95.3-10
gdb 20010428-3
gdbm 1.8.0-4
gettext 0.11.2-2
gettext-devel 0.11.2-2
ghostscript 7.05-1
ghostscript-base 7.05-1
ghostscript-x11 7.05-1
gnugo 3.2-1
gnupg 1.0.7-3
gperf 0.0
grep 2.5-1
groff 1.17.2-1
gsl 1.1.1-1
guile 1.6.0-1
guile-devel 1.6.0-1
guile-doc 1.6.0-1
gzip 1.3.3-4
indent 2.2.8-1
inetutils 1.3.2-19
irc 20010101-1
jbigkit 1.2-6
jpeg 6b-7
keychain 1.9-1
less 374-1
lesstif 0.93.18-3
libPropList 0.10.1-3
libbz2_0 1.0.2-1
libbz2_1 1.0.2-2
libcharset1 1.8-2
libdb2 2.7.7-4
libdb2-devel 2.7.7-4
libdb3.1 3.1.17-2
libdb3.1-devel 3.1.17-2
libguile12 1.6.0-1
libguile14 1.5.6-5
libiconv 1.8-2
libiconv2 1.8-2
libintl 0.10.38-3
libintl1 0.10.40-1
libintl2 0.11.2-2
libkpathsea3 20020911-1
libltdl3 20020705-2
libncurses5 5.2-1
libncurses6 5.2-8
libpng 1.2.4-2
libpng10 1.0.14-2
libpng10-devel 1.0.14-2
libpng12 1.2.4-2
libpng12-devel 1.2.4-2
libpng2 1.0.12-1
libpopt0 1.6.4-4
libreadline4 4.1-2
libreadline5 4.3-1
libtool 20020705-1
libtool-devel 20020705-2
libtool-stable 1.4.2-2
libungif 4.1.0-2
libxml2 2.4.23-1
libxslt 1.0.13-1
lilypond 1.6.4-1
lilypond-doc 1.6.4-1
links 0.96-1
login 1.4-4
lynx 2.8.4-1
m4 0.0
make 3.79.1-7
man 1.5g-2
mc 4.5.55-1
mingw-runtime 2.2-1
mktemp 1.4-1
mod_auth_mysql 1.11-1
mod_auth_ntsec 1.7-1
mod_dav 1.0.3-1.3.6-1
mod_php4 4.2.0-1
mod_ssl 2.8.8-1.3.24-1
more 2.11o-1
mt 2.0.1-1
mutt 1.4-1
nano 1.1.10-1
ncftp 3.1.4-1
ncurses 5.2-8
newlib-man 20020801
openbox 0.99.1-3
opengl 1.1.0-6
openssh 3.4p1-5
openssl 0.9.6g-1
openssl-devel 0.9.6g-1
patch 2.5-3
pcre 3.7-1
perl 5.6.1-2
perl_manpages 5.8.0-1
pine 4.44-2
pinfo 0.6.6p1-1
pkgconfig 0.12.0-1
popt 1.6.4-4
postgresql 7.2.2-1
procmail 3.22-7
procps 010801-2
python 2.2.1-1
rcs 5.7-3
readline 4.3-1
regex 4.4-2
robots 2.0-1
rsync 2.5.5-1
rxvt 2.7.2-14
sed 3.02-1
sh-utils 2.0-2
sharutils 4.2.1-2
shutdown 1.2-2
squid 2.4.STABLE7-1
ssmtp 2.38.7-3
swig 1.3.13-1
tar 1.13.19-1
tcltk 20001125-1
tcp_wrappers 7.6-1
tcsh 6.11.00-4
termcap 20020930-1
terminfo 5.2-3
tetex 20020911-1
tetex-base 20020911-1
tetex-beta 20020911-1
tetex-bin 20020911-1
tetex-devel 20020911-1
tetex-doc 20020911-1
tetex-extra 20020911-1
tetex-tiny 20020911-1
tetex-x11 20020911-1
texinfo 4.2-3
texmf 20020911-1
texmf-base 20020911-1
texmf-doc 20020911-1
texmf-extra 20020911-1
texmf-tiny 20020911-1
textutils 2.0.21-1
tidy 020822-1
tiff 3.5.7-1
time 1.7-1
ttcp 19980512-1
ucl 1.01-1
units 1.77-1
unzip 5.50-1
upx 1.21-1
vim 6.1-2
w32api 2.0-1
wget 1.8.2-1
which 1.5-1
whois 4.5.17-1
x2x 1.27-1
xpm-nox 4.2.0-1
zip 2.3-2
zlib 1.1.4-1
zsh 4.0.4-1
Use -h to see help about each section
[-- Attachment #3: Type: text/plain, Size: 214 bytes --]
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* RE: cygwin cron
2002-10-21 18:29 Smithesh Ramachandran
@ 2002-10-21 18:35 ` Igor Pechtchanski
2002-10-21 19:21 ` Pierre A. Humblet
2002-10-22 13:12 ` Smithesh Ramachandran
0 siblings, 2 replies; 10+ messages in thread
From: Igor Pechtchanski @ 2002-10-21 18:35 UTC (permalink / raw)
To: Smithesh Ramachandran; +Cc: cygwin
Smithesh,
The fact that scp works for you from the command line doesn't necessarily
mean it will work from cron. Ssh and scp look in $HOME/.ssh for public
keys. Cron runs as SYSTEM, with a blank (or default) environment. Even
if you set the effective uid to you (which you actually may not be doing,
from what I could see), scp will not know where to look for the public
keys if $HOME is not set to your home directory, and therefore will not
try to authenticate you. Please make sure that 1) cron switches to your
uid, and 2) your $HOME is set correctly. You can do that by scheduling an
appropriate shell script to run through cron. If this is indeed your
problem, you could define the appropriate environment before running scp
in your perl script (or a shell script).
Igor
On Mon, 21 Oct 2002, Smithesh Ramachandran wrote:
> Thanks. I did look at the FAQ s'. I haven't seen any of these specifics.
>
> I'm trying to scp files through cygwin cron (running on windows 2000) to
> Linux(redhat 72 kernal 2.4.7-10). And I'm running linux on pIII.
>
> The open_ssh version on Linux is OpenSSH_2.9p2. And I run sshd on linux on
> ports 9989 through 9999 (i'm not using the default port 22). The version on
> Cygwin is OpenSSH_3.4p1. I don't think the problem is with ssh/scp. Because
> it works fine on cygwin, and I'm able to scp files without giving
> passphrases (but using dsa public/private keys). But scp itself is not
> working through cygwin cron.
>
> I have done the following to install and start:
>
> $cygrunsrv -I cron -p /usr/sbin/cron -a -D
> $cygrunsrv -S cron
>
> Did the following on permission:
> $ chmod 1777 /var/cron
> $ chmod 1777 /var/cron/tabs
>
>
> Cron is running : (see below)
> $ ps -ef|grep cron
> SYSTEM 536 1336 ? 10:24:55 /usr/sbin/cron
>
> Attaching the output for cygcheck -r -s -v
>
> Please let me know if you need anything more.
>
> Thanks,
> Smithesh.
>
>
> -----Original Message-----
> From: lhall@pop.ma.ultranet.com [mailto:lhall@pop.ma.ultranet.com]
> Sent: Monday, October 21, 2002 3:21 PM
> To: smithesh@ticketmaster.com; maharig@idirect.net; cygwin@cygwin.com
> Subject: RE: cygwin cron
>
>
> I'm afraid that what you've provided only tells us what you're
> doing and how you're doing it. Unfortunately, we don't know anything
> else about your system or your setup. Make sure you've reviewed the
> email archives for cron issues and resolutions and that you've reviewed
> the cron and login READMEs (at least) as well as the user guide
> (particularly
> the stuff on permissions if you're running NT/W2K/XP). Oh, and a review of
> the FAQ may be worthwhile as well. You never know what tid-bits are lurking
> in the answers to even seemingly unrelated questions. If you don't find
> something useful in all that which resolves your problem, please provide
> the output of cygcheck -s -r -v as an attachment as well as the steps you
> took to configure cron to the list. Someone may be able to spot your
> problem given that.
>
> Good luck,
>
> Larry
>
> Original Message:
> -----------------
> From: Smithesh Ramachandran smithesh@ticketmaster.com
> Date: Mon, 21 Oct 2002 13:53:12 -0700
> To: maharig@idirect.net, cygwin@cygwin.com
> Subject: cygwin cron
>
>
> Hi ,
> I'm trying to scp (without pass phrases) using dsa on cygwin cron.
> scp works fine, but not within cron.
>
> this is what I'm doing -
>
> crontab -e
>
> 00 * * * * /usr/bin/perl /home/admin/perl/test.pl >> /tmp/test.txt
>
> and this is what test.pl has:
>
> #!/usr/bin/perl
>
> system('scp -P 9989 -oProtocol=2 -r /cygdrive/b/IN
> smithesh@172.26.20.34:tmp/.');
>
> When I run test.pl by itself on cygwin command line, it works (meaning
> it does the scp), but not within cron.
>
> Also tried putting scp stmt itself within cron and didn't work either.
> I also tried removing, installing, stopping and starting cron using
> cygrunsrv. cron in general works, but is not doing the above scp stuff.
> I'm not sure if I'm doing anything wrong.. Help..
> Thanks,
> Smithesh.
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: cygwin cron
2002-10-21 18:35 ` Igor Pechtchanski
@ 2002-10-21 19:21 ` Pierre A. Humblet
2002-10-21 20:18 ` Igor Pechtchanski
2002-10-22 13:12 ` Smithesh Ramachandran
1 sibling, 1 reply; 10+ messages in thread
From: Pierre A. Humblet @ 2002-10-21 19:21 UTC (permalink / raw)
To: cygwin
On Mon, Oct 21, 2002 at 08:21:08PM -0400, Igor Pechtchanski wrote:
>
> The fact that scp works for you from the command line doesn't necessarily
> mean it will work from cron. Ssh and scp look in $HOME/.ssh for public
/usr/doc/cygwin/openssh:
"Please note that OpenSSH does never use the value of $HOME to
search for the users configuration files! It always uses the
value of the pw_dir field in /etc/passwd as the home directory."
Running as the desired user should be enough
Pierre
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: cygwin cron
2002-10-21 19:21 ` Pierre A. Humblet
@ 2002-10-21 20:18 ` Igor Pechtchanski
0 siblings, 0 replies; 10+ messages in thread
From: Igor Pechtchanski @ 2002-10-21 20:18 UTC (permalink / raw)
To: Pierre A. Humblet; +Cc: cygwin
On Mon, 21 Oct 2002, Pierre A. Humblet wrote:
> On Mon, Oct 21, 2002 at 08:21:08PM -0400, Igor Pechtchanski wrote:
> >
> > The fact that scp works for you from the command line doesn't necessarily
> > mean it will work from cron. Ssh and scp look in $HOME/.ssh for public
>
> /usr/doc/cygwin/openssh:
> "Please note that OpenSSH does never use the value of $HOME to
> search for the users configuration files! It always uses the
> value of the pw_dir field in /etc/passwd as the home directory."
>
> Running as the desired user should be enough
>
> Pierre
True. However,
$ man ssh
[snip]
FILES
$HOME/.ssh/known_hosts
[snip]
$HOME/.ssh/identity, $HOME/.ssh/id_dsa, $HOME/.ssh/id_rsa
[snip]
$HOME/.ssh/identity.pub, $HOME/.ssh/id_dsa.pub, $HOME/.ssh/id_rsa.pub
[snip]
$HOME/.ssh/config
[snip]
$HOME/.ssh/authorized_keys
[snip]
$HOME/.shosts
[snip]
$HOME/.ssh/rc
[snip]
$HOME/.ssh/environment
[snip]
$
I guess the manpage needs to be updated...
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: cygwin cron
2002-10-21 18:35 ` Igor Pechtchanski
2002-10-21 19:21 ` Pierre A. Humblet
@ 2002-10-22 13:12 ` Smithesh Ramachandran
1 sibling, 0 replies; 10+ messages in thread
From: Smithesh Ramachandran @ 2002-10-22 13:12 UTC (permalink / raw)
To: cygwin
Igor,
Thanks. $UID was empty and I set $UID to admin uid. $HOME was good.
But still no luck with cron.
Instead of using cron, for the current purpose, simulated the same behavior
within the perl script, just by sleeping for an hour or so, and then invoking
scp. It works okay, and for now this is good enough.
Thanks again for your help.
Smithesh.
Igor Pechtchanski wrote:
> Smithesh,
>
> The fact that scp works for you from the command line doesn't necessarily
> mean it will work from cron. Ssh and scp look in $HOME/.ssh for public
> keys. Cron runs as SYSTEM, with a blank (or default) environment. Even
> if you set the effective uid to you (which you actually may not be doing,
> from what I could see), scp will not know where to look for the public
> keys if $HOME is not set to your home directory, and therefore will not
> try to authenticate you. Please make sure that 1) cron switches to your
> uid, and 2) your $HOME is set correctly. You can do that by scheduling an
> appropriate shell script to run through cron. If this is indeed your
> problem, you could define the appropriate environment before running scp
> in your perl script (or a shell script).
> Igor
>
> On Mon, 21 Oct 2002, Smithesh Ramachandran wrote:
>
> > Thanks. I did look at the FAQ s'. I haven't seen any of these specifics.
> >
> > I'm trying to scp files through cygwin cron (running on windows 2000) to
> > Linux(redhat 72 kernal 2.4.7-10). And I'm running linux on pIII.
> >
> > The open_ssh version on Linux is OpenSSH_2.9p2. And I run sshd on linux on
> > ports 9989 through 9999 (i'm not using the default port 22). The version on
> > Cygwin is OpenSSH_3.4p1. I don't think the problem is with ssh/scp. Because
> > it works fine on cygwin, and I'm able to scp files without giving
> > passphrases (but using dsa public/private keys). But scp itself is not
> > working through cygwin cron.
> >
> > I have done the following to install and start:
> >
> > $cygrunsrv -I cron -p /usr/sbin/cron -a -D
> > $cygrunsrv -S cron
> >
> > Did the following on permission:
> > $ chmod 1777 /var/cron
> > $ chmod 1777 /var/cron/tabs
> >
> >
> > Cron is running : (see below)
> > $ ps -ef|grep cron
> > SYSTEM 536 1336 ? 10:24:55 /usr/sbin/cron
> >
> > Attaching the output for cygcheck -r -s -v
> >
> > Please let me know if you need anything more.
> >
> > Thanks,
> > Smithesh.
> >
> >
> > -----Original Message-----
> > From: lhall@pop.ma.ultranet.com [mailto:lhall@pop.ma.ultranet.com]
> > Sent: Monday, October 21, 2002 3:21 PM
> > To: smithesh@ticketmaster.com; maharig@idirect.net; cygwin@cygwin.com
> > Subject: RE: cygwin cron
> >
> >
> > I'm afraid that what you've provided only tells us what you're
> > doing and how you're doing it. Unfortunately, we don't know anything
> > else about your system or your setup. Make sure you've reviewed the
> > email archives for cron issues and resolutions and that you've reviewed
> > the cron and login READMEs (at least) as well as the user guide
> > (particularly
> > the stuff on permissions if you're running NT/W2K/XP). Oh, and a review of
> > the FAQ may be worthwhile as well. You never know what tid-bits are lurking
> > in the answers to even seemingly unrelated questions. If you don't find
> > something useful in all that which resolves your problem, please provide
> > the output of cygcheck -s -r -v as an attachment as well as the steps you
> > took to configure cron to the list. Someone may be able to spot your
> > problem given that.
> >
> > Good luck,
> >
> > Larry
> >
> > Original Message:
> > -----------------
> > From: Smithesh Ramachandran smithesh@ticketmaster.com
> > Date: Mon, 21 Oct 2002 13:53:12 -0700
> > To: maharig@idirect.net, cygwin@cygwin.com
> > Subject: cygwin cron
> >
> >
> > Hi ,
> > I'm trying to scp (without pass phrases) using dsa on cygwin cron.
> > scp works fine, but not within cron.
> >
> > this is what I'm doing -
> >
> > crontab -e
> >
> > 00 * * * * /usr/bin/perl /home/admin/perl/test.pl >> /tmp/test.txt
> >
> > and this is what test.pl has:
> >
> > #!/usr/bin/perl
> >
> > system('scp -P 9989 -oProtocol=2 -r /cygdrive/b/IN
> > smithesh@172.26.20.34:tmp/.');
> >
> > When I run test.pl by itself on cygwin command line, it works (meaning
> > it does the scp), but not within cron.
> >
> > Also tried putting scp stmt itself within cron and didn't work either.
> > I also tried removing, installing, stopping and starting cron using
> > cygrunsrv. cron in general works, but is not doing the above scp stuff.
> > I'm not sure if I'm doing anything wrong.. Help..
> > Thanks,
> > Smithesh.
>
> --
> http://cs.nyu.edu/~pechtcha/
> |\ _,,,---,,_ pechtcha@cs.nyu.edu
> ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
> |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski
> '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
>
> "Water molecules expand as they grow warmer" (C) Popular Science, Oct'02, p.51
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
* cygwin cron
@ 2002-10-21 15:30 Smithesh Ramachandran
0 siblings, 0 replies; 10+ messages in thread
From: Smithesh Ramachandran @ 2002-10-21 15:30 UTC (permalink / raw)
To: maharig, cygwin
Hi ,
I'm trying to scp (without pass phrases) using dsa on cygwin cron.
scp works fine, but not within cron.
this is what I'm doing -
crontab -e
00 * * * * /usr/bin/perl /home/admin/perl/test.pl >> /tmp/test.txt
and this is what test.pl has:
#!/usr/bin/perl
system('scp -P 9989 -oProtocol=2 -r /cygdrive/b/IN
smithesh@172.26.20.34:tmp/.');
When I run test.pl by itself on cygwin command line, it works (meaning
it does the scp), but not within cron.
Also tried putting scp stmt itself within cron and didn't work either.
I also tried removing, installing, stopping and starting cron using
cygrunsrv. cron in general works, but is not doing the above scp stuff.
I'm not sure if I'm doing anything wrong.. Help..
Thanks,
Smithesh.
--
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/
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2004-05-18 14:22 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-21 17:21 cygwin cron lhall
-- strict thread matches above, loose matches on Subject: below --
2004-05-18 14:22 CYGWIN & CRON izzogabriele
2004-05-18 14:35 ` Dave Korn
2002-10-23 9:00 cygwin cron Harig, Mark A.
2002-10-21 18:29 Smithesh Ramachandran
2002-10-21 18:35 ` Igor Pechtchanski
2002-10-21 19:21 ` Pierre A. Humblet
2002-10-21 20:18 ` Igor Pechtchanski
2002-10-22 13:12 ` Smithesh Ramachandran
2002-10-21 15:30 Smithesh Ramachandran
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).