Re: problems with cron & permissions

2009-08-09 Thread Larry Hall (Cygwin)

On 08/08/2009 11:29 PM, michael trott wrote:

I had already set Cron to run as my service from within Cygwin, and
also under services.msc Cron is running as me.

Are they the only two area's it need to me set?


You want to re-run 'cron-config' specifying that you want to run the
service as your user.

--
Larry Hall  http://www.rfk.com
RFK Partners, Inc.  (508) 893-9779 - RFK Office
216 Dalton Rd.  (508) 893-9889 - FAX
Holliston, MA 01746

_

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: problems with cron & permissions

2009-08-08 Thread michael trott
I had already set Cron to run as my service from within Cygwin, and
also under services.msc Cron is running as me.

Are they the only two area's it need to me set?

thanks, i really appreciate it :)



On Sun, Aug 9, 2009 at 7:12 AM, Reini Urban wrote:
> 2009/8/8 michael trott:
>> sure uve heard it all before. trying to get cron to backup my system
>> to a samba share thats mounted to a local drive. i can run the script
>> and back up fine. This is my crontab:
>
> Try the same as user SYSTEM and not as your local user and you will
> get the same error.
>
> The solution is to change the properties of the cron service to run
> under your local user account.
> SYSTEM does not have access to remote samba shares.
> --
> Reini Urban
> http://phpwiki.org/           http://murbreak.at/
>
> --
> Problem reports:       http://cygwin.com/problems.html
> FAQ:                   http://cygwin.com/faq/
> Documentation:         http://cygwin.com/docs.html
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>
>

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: problems with cron & permissions

2009-08-08 Thread Reini Urban
2009/8/8 michael trott:
> sure uve heard it all before. trying to get cron to backup my system
> to a samba share thats mounted to a local drive. i can run the script
> and back up fine. This is my crontab:

Try the same as user SYSTEM and not as your local user and you will
get the same error.

The solution is to change the properties of the cron service to run
under your local user account.
SYSTEM does not have access to remote samba shares.
-- 
Reini Urban
http://phpwiki.org/   http://murbreak.at/

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



problems with cron & permissions

2009-08-08 Thread michael trott
hi all,

sure uve heard it all before. trying to get cron to backup my system
to a samba share thats mounted to a local drive. i can run the script
and back up fine. This is my crontab:

mich...@home-pc ~
$ crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.7ktN9TGaeS installed on Sun Aug  9 02:49:06 2009)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
* * * * * /home/Michael/scrpits/backup.sh

_

I've confirmed that if i put a basic echo date > to_file.txt in
crontab works fine. This is the error i'm recevieing in cron.log:

$ cat cron.log
This file was written by the /usr/bin/cronlog script on 20090809_022001

From: root (Cron Daemon)
To: Michael
Subject: Cron  /home/Michael/scrpits/backup.sh
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 
X-Cron-Env: 

ls: cannot access /cygdrive/z/backups/Family/: No such file or directory
ls: cannot access /cygdrive/z/backups/Michael/: No such file or directory
tar: Removing leading `/' from member namestar (child):
/cygdrive/z/backups/Michael/Michael_09-08-09.tar.bz
: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
/home/Michael/scrpits/backup.sh: line 16: []: command not found
tar (child): tar: Removing leading `/' from member names
/cygdrive/z/backups/Family/Family_09-08-09.tar.bz: Cannot open: No such file or
directory
tar (child): Error is not recoverable: exiting now
/home/Michael/scrpits/backup.sh: line 22: []: command not found

_

Location of the scripts:


mich...@home-pc ~/scrpits
$ l
total 5.0K
-rwxr-xr-x 1 Michael None 835 Aug  9 01:32 backup.sh
-rw-r--r-- 1 Michael None  49 Aug  9 02:18 temp.sh

mich...@home-pc ~/scrpits
$ pwd
/home/Michael/scrpits

_
This is the location of the share:

mich...@home-pc /cygdrive/z/backups/Family
$ l
total 4.0M
-rw-r--r-- 1 Michael None 10 Aug  9 01:49 test

mich...@home-pc /cygdrive/z/backups/Family
$ l ./../
total 0
drwxr-xr-x 1 Michael None 0 Aug  9 01:49 Family
drwxr-xr-x 1 Michael None 0 Aug  9 01:37 Michael
_

I originally had cron running as system, thought it may be to do with
permissions, so now running cron as my user, still same problem. I
can't chmod or chown the dir's above. Anyone have any ideas or
suggestions? Just to reiterate works perfectly when i initiate the
script myself.

thanks alot

Michael

--
Problem reports:   http://cygwin.com/problems.html
FAQ:   http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info:  http://cygwin.com/ml/#unsubscribe-simple



Re: Problems with cron

2008-10-20 Thread Pierre A. Humblet
- Original Message - 
From: "Jörg Schreiber"
To: cygwin@cygwin.com
Sent: Monday, October 20, 2008 11:31 AM
Subject: Problems with cron



Hi,

I've installed cygwin and I'm very pleased with it. Now I want to use
cron to run some kind of backup script where I need the possibilities
of a real shell (not DOS). After installing cron and ssmtp I first got
e-mails from cron. It seems to run, but since I've started cron as a
service (2008/10/17) it didn't work anymore and I don't know what
"can't cd to HOME" means. The HOME environment variable is set and
nothing was changed between 16th and 17th.

*
That's weird. The cron daemon is running as yourself, so access to network 
drives
should not be a problem (HOME = /cygdrive/h, I presume).
One explanation is that h: is not accessible to you when running as a service.
This can be confirmed  by the following test, which does not involve cron at 
all.

1) Create a shell script:
~: cat > c:/testit
env
pwd
cd /cygdrive/h <==  use whatever is proper
pwd

2) Create and run a "test" service under yourself
~: cygrunsrv -I test -u p-humblet -p /bin/sh -a c:/testit   <== 
use your name
Enter password of user:
Reenter, please:
~: cygrunsrv -S test
cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error 1062:
The service has not been started.   
   <== don't 
worry about this
3) Look at the output
~: cat /var/log/test.log

Alternatively run the following service, which tries to ls your HOME,
cygrunsrv -I ls -u p-humblet -p /bin/ls -a $HOME
Start it and look at /var/log/ls.log

Note that it may make a difference if you specify your HOME as a drive 
(/cygdrive/h)
or as a network path //computer/share.
I have just tested at my work, where my Windows home is U: I cannot use it from 
a service.
However I can use the expanded path (which is listed in /etc/passwd, and used 
as default by 
cron)
You may want to try changing that before running the tests above.

If the explanation holds, you have a choice between talking to your 
administrator or creating
a HOME on a local disk. From there you may be able to access your real HOME 
with "net use ..."

I have also noticed that your group is listed as mkpasswd-l-d. Thus the group 
and passwd file
my not have been properly installed. Perhaps if they were, you would not need 
to specify HOME.

Pierre 


--
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/



Problems with cron

2008-10-20 Thread Jörg Schreiber

Hi,

I've installed cygwin and I'm very pleased with it. Now I want to use
cron to run some kind of backup script where I need the possibilities
of a real shell (not DOS). After installing cron and ssmtp I first got
e-mails from cron. It seems to run, but since I've started cron as a
service (2008/10/17) it didn't work anymore and I don't know what
"can't cd to HOME" means. The HOME environment variable is set and
nothing was changed between 16th and 17th.

Any answer will be helpful.

Best regards

Jörg

---
Jörg Schreiber, M.A.
Springer Science+Business Media
Process and Content Management | Content Technologies
---
Tiergartenstraße 17 | 69121 Heidelberg | Germany
Tel: +49 (0) 6221 / 487 - 8146
Fax: +49 (0) 6221 / 4876 - 8146
E-Mail: [EMAIL PROTECTED]
Internet: www.springer.com
---





cronbug.txt
Description: Binary data
--
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/

Still having problems with cron writing to a restricted directory

2007-03-08 Thread Jerome Fong

Hi there,

Sorry, but I am totally confused now.  I have a script that creates a 
new sub-directory and copies files over to the new sub-directory.  My 
problem is, the directory where this sub-directory is supposed to be 
created is restricted.  Only I have have write permissions to the 
directory, everyone else has read privileges.


When I run my script interactively, the sub-directory gets written. 
However, when I run the same script under cron, I get the following error:


mkdir: cannot create directory `/builds/test': Permission denied

I search everywhere but there doesn't seem to be a similar issue. I read 
that cron runs scripts under a different user, and tried adding
"su - test_user" to my script as suggested.  I made sure my uid and gid 
matched in my cron and interactive logs and the environment "env" 
matched up.  But I still cannot get my sub-directory created within cron.


Help!


--
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/



Re: problems with cron

2004-12-08 Thread Robert Schmidt
Jeff Yemin wrote:
I'm running cron as a service using cygrunsrv commands, and it seems to
start ok.  But it doesn't seem to be running the jobs.  I put the date
job in my crontab as a test, and I never see anything written to
/tmp/cron.test.
 
Here's my crontab:
 
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.2768 installed on Wed Dec  8 17:46:04 2004)
# (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp
$)
30 0 * * * "cd /c/build; ./mailBuildResults.sh"
* * * * * "date >> /tmp/cron.test"

Any help would be appreciated.
I think cron uses syslog, you should be able to see in the Windows Event 
Viewer:
- cron startup
- any started cron jobs
- any changes to crontab detected by cron (polled every minute)

Have you put your crontab file in the correct place with sufficient 
permissions for the System user (man cron), or are you using the crontab 
utility?

My crontab file has no quotes around the command - are quotes supported?
Rob
Thanks,
Jeff Yemin

--
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/


problems with cron

2004-12-08 Thread Jeff Yemin
I'm running cron as a service using cygrunsrv commands, and it seems to
start ok.  But it doesn't seem to be running the jobs.  I put the date
job in my crontab as a test, and I never see anything written to
/tmp/cron.test.
 
Here's my crontab:
 
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.2768 installed on Wed Dec  8 17:46:04 2004)
# (Cron version -- $Id: crontab.c,v 1.7 2003/04/15 15:13:41 corinna Exp
$)
30 0 * * * "cd /c/build; ./mailBuildResults.sh"
* * * * * "date >> /tmp/cron.test"

Any help would be appreciated.
 
Thanks,
Jeff Yemin

--
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/



Re: Problems with cron and hibernation: a solution?

2004-10-20 Thread Andrew DeFaria
Xavier Nodet wrote:
Hi all,
I tried to look into the problem that cron does not gracefully wake up 
from hibernation[1]. 
Minor nit but you cannot awake from hibernation! Once hibernated the PC 
turns off! One must physically press the power button!

I suspect you mean "standby" not "hibernation".
--
Consciousness: that annoying time between naps.
--
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/


Re: Problems with cron and hibernation: a solution?

2004-10-20 Thread Corinna Vinschen
On Oct 20 17:29, Xavier Nodet wrote:
> On Wed, 20 Oct 2004 16:19:00 +0200 Corinna Vinschen <[EMAIL PROTECTED]> wrote:
> 
> > Erm?!?  Last time I checked cron was still on version 3.0.1.
> 
> It seems that the original source is at 
>   
> and version 4.1 (the only one there) is from 2004/01/23.

Hmm, that's a derived version from the original Vixie cron.  I just had
a look into several Linux distros (Fedora, Red Hat Enterprise Linux,
SuSE, Debian) and they all still use 3.0 or 3.0.1.  None of them is
using the ISC version.


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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/



Re: Problems with cron and hibernation: a solution?

2004-10-20 Thread Xavier Nodet
On Wed, 20 Oct 2004 16:19:00 +0200 Corinna Vinschen <[EMAIL PROTECTED]> wrote:

> Erm?!?  Last time I checked cron was still on version 3.0.1.

It seems that the original source is at 
  
and version 4.1 (the only one there) is from 2004/01/23.

-- 
Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.


--
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/



Re: Problems with cron and hibernation: a solution?

2004-10-20 Thread Corinna Vinschen
On Oct 20 15:42, Xavier Nodet wrote:
> On Wed, 20 Oct 2004 14:10:58 +0200 Corinna Vinschen <[EMAIL PROTECTED]> wrote:
> 
> > Since that's not only a Cygwin issue, did you check upstream, if that
> > problem has already been solved?
> 
> I had not. But I just tried to find a newer version, and found one on
>   

Erm?!?  Last time I checked cron was still on version 3.0.1.

> I glanced at the code in this file, and it seems to handle the case of
> time-shifts. It also already has the Cygwin-specific fix that changes
> the standard streams. Maybe this code could be directly used in Cygwin?

Very likely not.  Cygwin needed a couple of patches which are annoyingly
Windows and Cygwin specific.  I'm not prepared to use a newer version of
cron right now for several reasons.  Perhaps I can look into making a
cron updated in a couple of weeks.  However, if somebody is interested
in taking over Cygwin cron maintainership, feel free!


Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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/



Re: Problems with cron and hibernation: a solution?

2004-10-20 Thread Xavier Nodet
On Wed, 20 Oct 2004 14:10:58 +0200 Corinna Vinschen <[EMAIL PROTECTED]> wrote:

> Since that's not only a Cygwin issue, did you check upstream, if that
> problem has already been solved?

I had not. But I just tried to find a newer version, and found one on
  

I glanced at the code in this file, and it seems to handle the case of
time-shifts. It also already has the Cygwin-specific fix that changes
the standard streams. Maybe this code could be directly used in Cygwin?

> I've applied the patch and will release the new version today.

Thanks.

-- 
Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.


--
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/



Re: Problems with cron and hibernation: a solution?

2004-10-20 Thread Corinna Vinschen
On Oct 20 11:56, Xavier Nodet wrote:
> On Wed, 20 Oct 2004 11:03:04 +0200 (Romance Daylight Time) Xavier Nodet <[EMAIL 
> PROTECTED]> wrote:
> 
> > The attached patch corrects this problem
> 
> Here is the patch again, un-encoded and un-signed, hoping to better
> conform to the posting guidelines...

Thanks for the patch.  Since that's not only a Cygwin issue, did you
check upstream, if that problem has already been solved?  It woould be
interesting to use the same fix.  If not, you should consider to send
your patch upstream.

I've applied the patch (with a minor change to the comment to fit into
80 columns) and will release the new version today.


Thanks,
Corinna

-- 
Corinna Vinschen  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader  mailto:[EMAIL PROTECTED]
Red Hat, Inc.

--
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/



Re: Problems with cron and hibernation: a solution?

2004-10-20 Thread Xavier Nodet
On Wed, 20 Oct 2004 11:03:04 +0200 (Romance Daylight Time) Xavier Nodet <[EMAIL 
PROTECTED]> wrote:

> The attached patch corrects this problem

Here is the patch again, un-encoded and un-signed, hoping to better
conform to the posting guidelines...

-- 
Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.
diff -bu2 ../cron-3.0.1-12-sav/cron.c ./cron.c
--- ../cron-3.0.1-12-sav/cron.c 2003-06-10 11:23:10.0 +0200
+++ ./cron.c2004-10-20 10:23:36.528399100 +0200
@@ -119,5 +119,9 @@
 
 #ifdef __CYGWIN__
-   {
+# if DEBUGGING
+   if (!DebugFlags) {
+# else
+   if (!dont_fork) {
+# endif
  int fd;
  if ((fd = open("/dev/null", O_RDWR, 0)) != -1)
@@ -264,5 +268,22 @@
getpid(), seconds_to_wait))
seconds_to_wait = (int) sleep((unsigned int) seconds_to_wait);
+   Debug(DSCH, ("[%d] returning from sleep. Returned value: %d\n", 
+   getpid(), seconds_to_wait));
+
+   /* if we have to wait for a inordinate amount of time, this means
+* that we somehow screwed up the timings. Most probable cause is
+* that the clock was reset, or that the computer was put on sleep
+* for some time. Let's recompute everything.
+*/
+   if ((seconds_to_wait < 0) || (seconds_to_wait >= 90)) {
+   Debug(DSCH, ("[%d] Resyncing\n"));
+   cron_sync();
+   seconds_to_wait = (int) (TargetTime - time((time_t*)0));
+   Debug(DSCH, ("[%d] TargetTime=%ld, sec-to-wait=%d\n",
+   getpid(), TargetTime, seconds_to_wait));
}
+
+   }
+
 }
 

--
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/

Problems with cron and hibernation: a solution?

2004-10-20 Thread Xavier Nodet
Hi all,

I tried to look into the problem that cron does not gracefully wake up
from hibernation[1]. It turns out that if hibernation takes place during
the call to sleep, the value returned is extremely high (in the order of
4 million seconds) and thus cron appears dead.

The attached patch corrects this problem, by re-syncing with the clock
if the value returned from sleep is negative or too high (> 90s). It
also makes it possible to see debug messages when running cron on the
command line without forking.

The resulting program seems to run fine for me. Hope this will help
others...

[1] 

-- 
Xavier Nodet
"They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety." - Benjamin Franklin, 1759.


resume-from-hibernate.patch
Description: Binary data


pgp3OXdGMubZO.pgp
Description: PGP signature


RE: piping problems with cron+4nt

2004-02-18 Thread Mironov, Leonid {PBG}
Rafael Kitover wrote:
> Perhaps try using the cygstart utility, in conjunction with --hide?
> 
Yes, it helped. Thanks a lot.


>> -Original Message-
>> From: Mironov, Leonid {PBG}
>> Sent: Wednesday, February 18, 2004 12:59 AM
>> Subject: piping problems with cron+4nt
>> 
>> I've got a bunch of legacy 4NT batches I want to run from cygwin
>> cron. When run from 4NT started from bash these batches work fine
>> but when started from cron all lines with redirection and piping
>> fail, e.g. when I run 
>> 
>>   dir>q
>> 
>> file 'q' is not created,
>> 
>>   dir|sort
>> 
>> starts sort and it sits and waits for keyboard input. Also output
>> from external programs is lost, e.g. if batch looks like
>> 
>>   echo zzz
>>   zip zzz *
>>   echo qqq
>> 
>> and is run as
>> 
>> 02   *   *   *   4NT.EXE /c
>> ibackup.btm>>h:\\backup\\bk.log
>> 
>> file h:\backup\bk.log will look like
>> 
>>   zzz
>>   qqq
>> 
>> zip output is missing, although zip archive is created.
>> 
>> Any ideas?
>> 
>> Win XP SP1, just refreshed cygwin and 4NT to latest bulds whith no
>> effect at all. 
>> 
>> :), Leo



:), Leo

---
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?


--
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/



RE: piping problems with cron+4nt

2004-02-18 Thread Rafael Kitover
Perhaps try using the cygstart utility, in conjunction with --hide?

>-Original Message-
>From: Mironov, Leonid {PBG}
>Sent: Wednesday, February 18, 2004 12:59 AM
>Subject: piping problems with cron+4nt
>
>I've got a bunch of legacy 4NT batches I want to run from cygwin cron. When
>run from 4NT started from bash these batches work fine but when started from
>cron all lines with redirection and piping fail, e.g. when I run
>
>   dir>q
>
>file 'q' is not created,
>
>   dir|sort
>
>starts sort and it sits and waits for keyboard input. Also output from
>external programs is lost, e.g. if batch looks like
>
>   echo zzz
>   zip zzz *
>   echo qqq
>
>and is run as
>
>0  2   *   *   *   4NT.EXE /c
>ibackup.btm>>h:\\backup\\bk.log
>
>file h:\backup\bk.log will look like
>
>   zzz
>   qqq
>
>zip output is missing, although zip archive is created.
>
>Any ideas?
>
>Win XP SP1, just refreshed cygwin and 4NT to latest bulds whith no effect at
>all.
>
>:), Leo


--
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/



piping problems with cron+4nt

2004-02-18 Thread Mironov, Leonid {PBG}
I've got a bunch of legacy 4NT batches I want to run from cygwin cron. When
run from 4NT started from bash these batches work fine but when started from
cron all lines with redirection and piping fail, e.g. when I run

   dir>q

file 'q' is not created,

   dir|sort

starts sort and it sits and waits for keyboard input. Also output from
external programs is lost, e.g. if batch looks like

   echo zzz
   zip zzz *
   echo qqq

and is run as 

0   2   *   *   *   4NT.EXE /c
ibackup.btm>>h:\\backup\\bk.log

file h:\backup\bk.log will look like

   zzz
   qqq

zip output is missing, although zip archive is created.

Any ideas?

Win XP SP1, just refreshed cygwin and 4NT to latest bulds whith no effect at
all.

:), Leo


--
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/



Problems with cron: extrange info log to XP log and can't exec thecrontabs

2003-08-21 Thread Alberto Sáez
 Hello. I've been usgin cygwin for a while, but when I've tried to 
install the cron system I've got a bad error.

 1- I've installed without problems cron as a service.
  (with and without the -e "CYGWIN=tty ntsec" param)
 2- I've created the crontabs (very simple crontabs: echos to a file)

 3. Nothing happends.

 I've search the process and cron is one of them (so the service is 
working)
 Looking in the NT log I found a buch of erros of the form:

  Event Type :  Info
  Event Source: crontab
  Event Ctegory: None
  Event Id:   0
  (...)
  Description:
The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
cron : PID 4780 : (myWinXpuser) REPLACE (myWinXPuser).
I've found three differen messages:

PID ... (myWinXpuser) BEGIN EDIT (myWinXPuser).
PID ... (myWinXpuser) REPLACE (myWinXPuser).
PID ... (myWinXpuser) END EDIT (myWinXPuser).
This messages are created each time I edit the crontab.

¿Why? ¿Why me? ¿How can I solve this problem? ¿How can I get more Info?

I'm using an XP profesional,  and the cron-3.0.1-10 distro.

 Thanks a lot for your help

--
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/


RE: Problems with cron - Almost there

2003-07-02 Thread Jarrod Hermer
Thanks that did it!

-Original Message-
From: Vince Hoffman [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2003 2:02 PM
To: Vince Hoffman; 'Jarrod Hermer'; [EMAIL PROTECTED]
Cc: 'Elfyn McBratney'; 'Harig, Mark'
Subject: RE: Problems with cron - Almost there

Doh sorry thats 
*/5 * * * * "command" 


--
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/



RE: Problems with cron - Almost there

2003-07-02 Thread Vince Hoffman
Doh sorry thats 
*/5 * * * * "command"



> -Original Message-
> From: Vince Hoffman [mailto:[EMAIL PROTECTED]
> Sent: 02 July 2003 12:56
> To: 'Jarrod Hermer'; [EMAIL PROTECTED]
> Cc: 'Elfyn McBratney'; 'Harig, Mark'
> Subject: RE: Problems with cron - Almost there
> 
> 
> I think the format for every 5 minutes is 
> /5 * * * * touch /tmp/test.file
> 
> read man 5 crontab rathe than just man crontab.
> 
> > -Original Message-
> > From: Jarrod Hermer [mailto:[EMAIL PROTECTED]
> > Sent: 02 July 2003 12:51
> > To: [EMAIL PROTECTED]
> > Cc: 'Elfyn McBratney'; 'Harig, Mark'
> > Subject: RE: Problems with cron - Almost there
> > 
> > 
> > Thanks for the help, that seemed to solve my problem.
> > 
> > Now I seem to be stumped by a simple problem. I have read 
> all the cron
> > and crontab man pages but still cannot seemed to get my job 
> > to run every
> > 5 minuts. The following causes the hello.txt file to be 
> > generated every
> > minute:
> > 
> > * * * * * echo "Hello World" > /home/Jarrod/hello.txt
> > 
> > So I would expect this to be execute every 5 minutes. It 
> however seems
> > to only run at 5 minutes past every hour.
> > 
> > 5 * * * * echo "Hello World" > /home/Jarrod/hello.txt
> > 
> > 
> > Thanks,
> > Jarrod
> > 
> > -Original Message-
> > From: Harig, Mark [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, July 02, 2003 12:45 AM
> > To: Jarrod Hermer
> > Cc: [EMAIL PROTECTED]
> > Subject: RE: Problems with cron
> > 
> > From your cygcheck text, here are some of your mount
> > points:
> > 
> > C:\cygwin  /  userbinmode
> > C:\cygwin/bin  /usr/bin   userbinmode
> > C:\cygwin/lib  /usr/lib   userbinmode
> > 
> > These likely need to be 'system' mount points instead of
> > 'user' mount points.  This situation probably came about
> > if you selected setup.exe's "Install For" option "Just Me"
> > instead of "All Users".  Please run the attached updated 
> > cron_diagnose.sh script to see if it helps with your
> > problem.
> > 
> > 
> > --
> > 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/
> > 
> 
> --
> 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/
> 

--
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/



RE: Problems with cron - Almost there

2003-07-02 Thread Vince Hoffman
I think the format for every 5 minutes is 
/5 * * * * touch /tmp/test.file

read man 5 crontab rathe than just man crontab.

> -Original Message-
> From: Jarrod Hermer [mailto:[EMAIL PROTECTED]
> Sent: 02 July 2003 12:51
> To: [EMAIL PROTECTED]
> Cc: 'Elfyn McBratney'; 'Harig, Mark'
> Subject: RE: Problems with cron - Almost there
> 
> 
> Thanks for the help, that seemed to solve my problem.
> 
> Now I seem to be stumped by a simple problem. I have read all the cron
> and crontab man pages but still cannot seemed to get my job 
> to run every
> 5 minuts. The following causes the hello.txt file to be 
> generated every
> minute:
> 
> * * * * * echo "Hello World" > /home/Jarrod/hello.txt
> 
> So I would expect this to be execute every 5 minutes. It however seems
> to only run at 5 minutes past every hour.
> 
> 5 * * * * echo "Hello World" > /home/Jarrod/hello.txt
> 
> 
> Thanks,
> Jarrod
> 
> -Original Message-
> From: Harig, Mark [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, July 02, 2003 12:45 AM
> To: Jarrod Hermer
> Cc: [EMAIL PROTECTED]
> Subject: RE: Problems with cron
> 
> From your cygcheck text, here are some of your mount
> points:
> 
> C:\cygwin  /  userbinmode
> C:\cygwin/bin  /usr/bin   userbinmode
> C:\cygwin/lib  /usr/lib   userbinmode
> 
> These likely need to be 'system' mount points instead of
> 'user' mount points.  This situation probably came about
> if you selected setup.exe's "Install For" option "Just Me"
> instead of "All Users".  Please run the attached updated 
> cron_diagnose.sh script to see if it helps with your
> problem.
> 
> 
> --
> 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/
> 

--
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/



RE: Problems with cron - Almost there

2003-07-02 Thread Jarrod Hermer
Thanks for the help, that seemed to solve my problem.

Now I seem to be stumped by a simple problem. I have read all the cron
and crontab man pages but still cannot seemed to get my job to run every
5 minuts. The following causes the hello.txt file to be generated every
minute:

* * * * * echo "Hello World" > /home/Jarrod/hello.txt

So I would expect this to be execute every 5 minutes. It however seems
to only run at 5 minutes past every hour.

5 * * * * echo "Hello World" > /home/Jarrod/hello.txt


Thanks,
Jarrod

-Original Message-
From: Harig, Mark [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, July 02, 2003 12:45 AM
To: Jarrod Hermer
Cc: [EMAIL PROTECTED]
Subject: RE: Problems with cron

>From your cygcheck text, here are some of your mount
points:

C:\cygwin  /  userbinmode
C:\cygwin/bin  /usr/bin   userbinmode
C:\cygwin/lib  /usr/lib   userbinmode

These likely need to be 'system' mount points instead of
'user' mount points.  This situation probably came about
if you selected setup.exe's "Install For" option "Just Me"
instead of "All Users".  Please run the attached updated 
cron_diagnose.sh script to see if it helps with your
problem.


--
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/



RE: Problems with cron

2003-07-01 Thread Elfyn McBratney
On Tue, 1 Jul 2003, Harig, Mark wrote:

> >From your cygcheck text, here are some of your mount
> points:
>
> C:\cygwin  /  userbinmode
> C:\cygwin/bin  /usr/bin   userbinmode
> C:\cygwin/lib  /usr/lib   userbinmode
>
> These likely need to be 'system' mount points instead of
> 'user' mount points.  This situation probably came about
> if you selected setup.exe's "Install For" option "Just Me"
> instead of "All Users".  Please run the attached updated
> cron_diagnose.sh script to see if it helps with your
> problem.

Yep. User mounts are stored in the 'user' registry hive, where as system mounts
are stored in the 'system' hive. Either change your mounts with

  mount -fb C:/Cygwin /
  mount -fb C:/Cygwin/bin /usr/bin
  mount -fb C:/Cygwin/lib /usr/lib

Or re-run setup.exe and change the install type from "Just Me" to "All Users".

Elfyn
-- 


--
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/



RE: Problems with cron

2003-07-01 Thread Harig, Mark
>From your cygcheck text, here are some of your mount
points:

C:\cygwin  /  userbinmode
C:\cygwin/bin  /usr/bin   userbinmode
C:\cygwin/lib  /usr/lib   userbinmode

These likely need to be 'system' mount points instead of
'user' mount points.  This situation probably came about
if you selected setup.exe's "Install For" option "Just Me"
instead of "All Users".  Please run the attached updated 
cron_diagnose.sh script to see if it helps with your
problem.


cron_diagnose.sh
Description: cron_diagnose.sh
--
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/

RE: Problems with cron

2003-06-27 Thread Jarrod Hermer
Thanks for the info, unfortunately it did not solve all my problems. I
am still getting the following error at the command prompt when I try
and start cron:

Cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
1062: The service has not been started.

And the following two enteries are made in the Event log:

Event Type: Error
Event Source:   cron
Event Category: None
Event ID:   0
Date:   6/27/2003
Time:   11:28:41 AM
User:   NT AUTHORITY\SYSTEM
Computer:   LONEWOLF
Description:
The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
cron : PID 3064 : starting service `cron' failed: execv: 255, error 255.


Event Type: Information
Event Source:   cron
Event Category: None
Event ID:   0
Date:   6/27/2003
Time:   11:28:41 AM
User:   NT AUTHORITY\SYSTEM
Computer:   LONEWOLF
Description:
The description for Event ID ( 0 ) in Source ( cron ) cannot be found.
The local computer may not have the necessary registry information or
message DLL files to display messages from a remote computer. You may be
able to use the /AUXSOURCE= flag to retrieve this description; see Help
and Support for details. The following information is part of the event:
cron : PID 3064 : `cron' service stopped.


Thanks in advance.

-Original Message-
From: Harig, Mark [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 26, 2003 11:12 PM
To: Jarrod Hermer; [EMAIL PROTECTED]
Subject: RE: Problems with cron

About your crontab file:

   * * * * root echo "Hello World!"

1. 'root' is not a valid value for the fifth field,
   which should be the day of the week.  Possible
   values: '*', 0-7 (Sunday is 0 or 7), or use names
   of days.  More details can be read in the manual
   page for crontab.  Enter 'man 5 crontab' at the
   bash prompt.

2. Redirect the output of 'echo' to a file.  Output
   that is not sent to a file is sent by email to
   the user.  This is likely not configured properly
   yet on your machine and so the "Hello World!"
   string is simply lost.  Try:

  * * * * * echo "hello world" > /tmp/hello.txt

   or 

  * * * * * /usr/bin/date > /tmp/date.txt

   or, to get a list of the environment that your
   crontab knows about:

  * * * * * /usr/bin/env > /tmp/env.txt

> -Original Message-
> From: Jarrod Hermer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: Problems with cron
> 
> 
> Hi,
> 
> I have scoured the net, run cron_diagnose.sh (no reported errors) and
> followed every suggestion I could find. Yet I cannot get cron to work.
> 
> At the prompt I get the following error:
> 
> Cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
> 1062: The service has not been started.
> 
> The Event Logs say that crontab as well as cron could not be found.
> Attached are the requested files.
> 
> Please bear in mind that I am a TOTAL Linux/Unix novice, so 
> apologies if
> it is an obvious problem.
> 
> Any help would be appreciated.
> Regards,
> Jarrod
> 


--
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/



RE: Problems with cron

2003-06-26 Thread Harig, Mark
About your crontab file:

   * * * * root echo "Hello World!"

1. 'root' is not a valid value for the fifth field,
   which should be the day of the week.  Possible
   values: '*', 0-7 (Sunday is 0 or 7), or use names
   of days.  More details can be read in the manual
   page for crontab.  Enter 'man 5 crontab' at the
   bash prompt.

2. Redirect the output of 'echo' to a file.  Output
   that is not sent to a file is sent by email to
   the user.  This is likely not configured properly
   yet on your machine and so the "Hello World!"
   string is simply lost.  Try:

  * * * * * echo "hello world" > /tmp/hello.txt

   or 

  * * * * * /usr/bin/date > /tmp/date.txt

   or, to get a list of the environment that your
   crontab knows about:

  * * * * * /usr/bin/env > /tmp/env.txt

> -Original Message-
> From: Jarrod Hermer [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 26, 2003 11:37 AM
> To: [EMAIL PROTECTED]
> Subject: Problems with cron
> 
> 
> Hi,
> 
> I have scoured the net, run cron_diagnose.sh (no reported errors) and
> followed every suggestion I could find. Yet I cannot get cron to work.
> 
> At the prompt I get the following error:
> 
> Cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
> 1062: The service has not been started.
> 
> The Event Logs say that crontab as well as cron could not be found.
> Attached are the requested files.
> 
> Please bear in mind that I am a TOTAL Linux/Unix novice, so 
> apologies if
> it is an obvious problem.
> 
> Any help would be appreciated.
> Regards,
> Jarrod
> 

--
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/



Problems with cron

2003-06-26 Thread Jarrod Hermer
Hi,

I have scoured the net, run cron_diagnose.sh (no reported errors) and
followed every suggestion I could find. Yet I cannot get cron to work.

At the prompt I get the following error:

Cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
1062: The service has not been started.

The Event Logs say that crontab as well as cron could not be found.
Attached are the requested files.

Please bear in mind that I am a TOTAL Linux/Unix novice, so apologies if
it is an obvious problem.

Any help would be appreciated.
Regards,
Jarrod

Cygwin Win95/NT Configuration Diagnostics
Current System Time: Thu Jun 26 17:30:16 2003

Windows XP Professional Ver 5.1 Build 2600 

Path:   C:\cygwin\usr\local\bin
C:\cygwin\bin
C:\cygwin\bin
c:\Perl\bin\
c:\WINDOWS\system32
c:\WINDOWS
c:\WINDOWS\System32\Wbem
c:\Program Files\Microsoft SQL Server\80\Tools\BINN
c:\Program Files\Microsoft SQL Server\80\Tools\Binn\
c:\jakarta-ant-1.5.1\bin
c:\jikes-1.17\bin

C:\cygwin\bin\id.exe output (nontsec)
UID: 1003(Jarrod)  GID: 513(None)
513(None)

C:\cygwin\bin\id.exe output (ntsec)
UID: 1003(Jarrod) GID: 513(None)
513(None) 544(Administrators)
545(Users)1006(Debugger Users)

SysDir: C:\WINDOWS\System32
WinDir: C:\WINDOWS

HOME = `C:\cygwin\home\Jarrod'
MAKE_MODE = `unix'
PWD = `/home/Jarrod'
USER = `Jarrod'

ALLUSERSPROFILE = `C:\Documents and Settings\All Users'
ANT_HOME = `C:\jakarta-ant-1.5.1'
APPDATA = `C:\Documents and Settings\Digitec\Application Data'
ASMLCODESENSE = `2'
ASMLWORDKEYBINDINGS = `on'
CLIENTNAME = `Console'
COMMONPROGRAMFILES = `C:\Program Files\Common Files'
COMPUTERNAME = `LONEWOLF'
COMSPEC = `C:\WINDOWS\system32\cmd.exe'
DXSDKROOT = `C:\Program Files\Microsoft SDK\.'
HOMEDRIVE = `C:'
HOMEPATH = `\Documents and Settings\Digitec'
INCLUDE = `C:\Program Files\Microsoft Visual Studio .NET 
2003\SDK\v1.1\include\;C:\Program Files\Microsoft Visual Studio 
.NET\FrameworkSDK\include\'
JAVA_HOME = `C:\j2sdk1.4.1'
LIB = `C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\;C:\Program 
Files\Microsoft Visual Studio .NET\FrameworkSDK\Lib\'
LOGONSERVER = `\\LONEWOLF'
MANPATH = `:/usr/ssl/man'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/var/run'
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 10, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `080a'
PROGRAMFILES = `C:\Program Files'
PROMPT = `$P$G'
PS1 = `\[\033]0;\w\007
[EMAIL PROTECTED] \[\033[33m\w\033[0m\]
$ '
SESSIONNAME = `Console'
SHLVL = `1'
SYSTEMDRIVE = `C:'
SYSTEMROOT = `C:\WINDOWS'
TEMP = `c:\DOCUME~1\Digitec\LOCALS~1\Temp'
TERM = `cygwin'
TMP = `c:\DOCUME~1\Digitec\LOCALS~1\Temp'
USERDOMAIN = `LONEWOLF'
USERNAME = `Jarrod'
USERPROFILE = `C:\Documents and Settings\Digitec'
VS71COMNTOOLS = `C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\Tools\'
VSCOMNTOOLS = `"C:\Program Files\Microsoft Visual Studio .NET\Common7\Tools\"'
WINDIR = `C:\WINDOWS'
_ = `/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 = 0x0022
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `C:\cygwin'
  flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `C:\cygwin/bin'
  flags = 0x0002
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `C:\cygwin/lib'
  flags = 0x0002
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
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

a:  fd   N/AN/A
c:  hd  NTFS   20002Mb  89% CP CS UN PA FC 
d:  cd   N/AN/A

C:\cygwin  /  userbinmode
C:\cygwin/bin  /usr/bin   userbinmode
C:\cygwin/lib  /usr/lib   userbinmode
.  /cygdrive  userbinmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.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/7 8:33
  848k 2003/04/11 C:\cygwin\bin\cygcrypto-0.9.7.dll - os=4.0 img=1.0 sys=4.0
  "cygcrypto-0.9.7.dll" v0.0 ts=2003/4/11 12:3