public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* New info re: cron problem
@ 2002-07-26 20:28 Paul Derbyshire
  0 siblings, 0 replies; only message in thread
From: Paul Derbyshire @ 2002-07-26 20:28 UTC (permalink / raw)
  To: cygwin

I've got the output from my cron job.Unfortunately, it's not very 
informative -- cryptic error messages.

The output is below, followed by remarks about it. Some stuff, mainly 
exact filenames and host names and IPs, have been blanked out for 
reasons of security. They should not affect the diagnosis of this 
problem.

removing old file, if existent
      4 [main] sh 13700 proc_subproc: Couldn't duplicate my 
handle<0x7D8> for pid 0, Win32 error 6
invoking wget
--21:00:03--  http://xxxxx.xxx.xxx/xxxx/xxxxx.xxxx
           => `xxxxx.xxxx'
Resolving xxxxx.xxx.xxx... c:/djgpp/bin/rm: cannot remove `bik.jpg': 
No such file or directory (ENOENT)
done.
Connecting to xxxxx.xxx.xxx[nnn.nnn.nnn.nnn]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 63,192 [text/html]

    0K .......... .......... .......... .......... .......... 81%    
4.32 KB/s
   50K .......... .                                          100%    
8.26 KB/s

21:00:18 (4.75 KB/s) - `xxxxx.xxxx' saved [63192/63192]

moving new file to desktop
17935310 [main] sh 13700 proc_subproc: Couldn't duplicate my 
handle<0x7D8> for pid 2147347456, Win32 error 6
c:/djgpp/bin/mv: cannot create regular file `/cygdrive/c/Documents 
and Settings/Paul Derbyshire/Desktop/xxxxx.xxxx': No such file or 
directory (ENOENT)
done



This output is very strange. For one thing, it seems to be trying to 
use the rm and mv that come with DJGPP, and not the Cygwin ones. 
Cygwin's shell should be searching /bin before it searches any 
Windows command paths, if it even does the latter. Then there's the 
"Couldn't duplicate my handle" messages. I don't get these when 
running the script manually from the shell. Moreover, there's the 
fact that wget actually appears to download the file successfully. 
Why isn't the file turning up in my home directory? Lastly, the mv 
command fails because my Windows desktop doesn't exist, which is 
absurd since I just launched my mailer from an icon there. Of course, 
since it's the djgpp mv, it may not understand "cygdrive"...

It seems there are two separate problems here. One is some weird 
problem with spawning new processes that seems dependent on whether 
there's an interactive shell somewhere up the line. The other is some 
weird problems with paths configury, but that should affect the shell 
too, and doesn't...

And then I can wonder about where wget is putting the file since it's 
not putting it in the current directory. I assume cron jobs run in 
something other than the job owner's home directory, from this 
evidence, but ... where?


--
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] only message in thread

only message in thread, other threads:[~2002-07-27  1:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-26 20:28 New info re: cron problem Paul Derbyshire

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).