| delorie.com/archives/browse.cgi | search |
| X-Spam-Check-By: | sourceware.org |
| Message-ID: | <004601c61338$2d332260$ac01a8c0@tanhauser> |
| Reply-To: | "Christian Lanconelli \(servizio\)" <lanconelli DOT christian_s AT btn DOT pnra DOT it> |
| From: | "Christian Lanconelli \(servizio\)" <lanconelli DOT christian_s AT btn DOT pnra DOT it> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | help cron cygwin |
| Date: | Sat, 7 Jan 2006 16:12:22 +1300 |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sourceware.org/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
| Sender: | cygwin-owner AT cygwin DOT com |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi,
CRON can run commands wrote in fortran containing the call system()
statement?
this is my program : trasf_DOS.f
It write a DOS batch file that is immediately run by the 'call system
("copio.bat")' statement-
It WORK WELL in the bash shell (cygwin because I use the DOS commands xcopy)
but can't run as a cron scheduled job.
Both trasf_DOS.exe, and copio.bat, are in the $PATH.
1) IT WORKS NORMALLY:
Administrator AT ragas /cygdrive/c/cvi/ICARO/dati
$ ./trasf_DOS.exe <Carriage Return>
sab 07/01/2006
Prima della trasformazione: 7 1 2006
Dopo la trasformazione: 6 1 6
=== Copio i file lanciando il batch appena creato ===
c:\cvi\ICARO\dati>xcopy c:\cvi\ICARO\dati\??060106.* \\pc27\CO2_O3\ /D /F
/Z
C:\cvi\ICARO\dati\DD060106.GAS -> \\pc27\CO2_O3\DD060106.GAS
C:\cvi\ICARO\dati\DD060106.MET -> \\pc27\CO2_O3\DD060106.MET
C:\cvi\ICARO\dati\DD060106.RAD -> \\pc27\CO2_O3\DD060106.RAD
C:\cvi\ICARO\dati\MN060106.DEU -> \\pc27\CO2_O3\MN060106.DEU
C:\cvi\ICARO\dati\MN060106.GAS -> \\pc27\CO2_O3\MN060106.GAS
C:\cvi\ICARO\dati\MN060106.MET -> \\pc27\CO2_O3\MN060106.MET
C:\cvi\ICARO\dati\MN060106.RAD -> \\pc27\CO2_O3\MN060106.RAD
7 File copiati
(end of trasf_DOS.exe)
2) IT IS IN THE PATH
Administrator AT ragas /cygdrive/c/cvi/ICARO/dati
$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINNT/system32:/cygd
rive
/c/WINNT:/cygdrive/c/VXIPNP/WinNT/Bin:/cygdrive/c/cvi/icaro/dati
3) Here are the crontab -l output:
Administrator AT ragas /cygdrive/c/cvi/ICARO/dati
$ crontab -l
40 * * * * trasf_DOS.exe;echo "tab eseguito alle
$(date)">/home/Administrator/cronlog
The file "cronlog" is regularly updated. But trasf_DOS appears not work!
Can you help me? What's my error?
Bye Bye
Christian
BTN Antarctica 74°S - 165°E
Programma Nazionale di Ricerche in Antartide
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |