From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d4db,e81beee77a17e747,start X-Google-Attributes: gid10d4db,public X-Google-ArrivalTime: 2003-09-26 02:50:08 PST Return-Path: Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!news.alt.net!cola.stump.algebra.com!robomod!not-for-mail X-COLA-Policy: http://stump.algebra.com/~cola X-COLA-Info-1: Send submissions to cola@stump.algebra.com X-COLA-Info-2: Send complaints to cola-admin@stump.algebra.com X-Comment: moderators do not necessarily agree or disagree with this article. X-Robomod: STUMP, ichudov@algebra.com (Igor Chudov) Date: Fri, 26 Sep 2003 04:45:37 CST From: "Hekaton Keires" Newsgroups: comp.os.linux.announce Subject: script running under shell, has troubles with crond Message-ID: X-Orig-NNTP-Posting-Host: 213.183.130.102 X-Orig-X-Trace: news.uni-berlin.de 1064569530 7257553 213.183.130.102 (16 [94246]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Auth: PGPMoose V1.1 PGP comp.os.linux.announce iQBVAwUAP3QKwiFvAtx2nXvNAQE6pAH9GLJ8Teok9DEnFf6zDmQgFQocSt5/nsbx 11ICesfxg0G7mJgR5r02F5gefXqVh0qcNEyuindDgtBOiCOPtdIdCg== =4kB3 X-Spam-Status: No, hits=-4.5 required=10.0 tests=BAYES_01,PRIORITY_NO_NAME,SEMIFORGED_HOTMAIL_RCVD version=2.53 X-Spam-Checker-Version: SpamAssassin 2.53 (1.174.2.15-2003-03-30-exp) Xref: archiver1.google.com comp.os.linux.announce:3693 hi all, need help; got a bash script that connects to a remote web server, gathers some data, inserts them into a oracle server and logs every activity in a local file. this script, besides setting variables such as PATH and CLASSPATH runs a java application which works without any problem if run in shell. but once i try to make crond execute it periodically this script starts itself, but never reaches the end of the job. sincerely java application has no trouble in connecting to the web server and drain data, but once it tries to make a select on oracle it just hangs up with no error reported, as looking on a log file. i've tried to change some environment variable, with no success. after all if the java application executes the first steps why shouldn't it accomplish the others? maybe it depends on CLASSPATH but it seems to be set correctly with every reference mentioned as absolute, not relative... pls help ________________________ salve gente, urge aiuto; ho uno script in bash che si connette a dei servers web remoti, scarica dati, li inserisce su un server oracle remoto e logga ogni attivita' in un file locale. lo script, oltre ad impostare variabili come PATH e CLASSPATH lancia un'applicazione java e funziona senza pecche se lanciato a mano sotto la shell. nel momento in cui delego crond di eseguire lo script giornalmente questo parte, ma non conclude il job. in realta' l'applicazione java riesce senza problemi a connettersi ai server remoti e scaricare dati, ma non appena effettua il primo select sul server oracle si blocca (almeno stando ai files di log) senza restituire alcun errore al crond. ho provato a modificare l'ambiente di crond, ma non e' servito... d'altronde se l'applicazione parte e riesce ad eseguire egregiamente le prime funzioni come mai si dovrebbe impallare solo verso la fine? ho pensato che magari questo dipende dalla locazione della classe invocata per le connessioni sql, ma la CLASSPATH e' impostata in maniera corretta... ed ogni riferimento e' sempre assoluto e mai relativo. pls help. ########################################################################## # Send submissions for comp.os.linux.announce to: cola@stump.algebra.com # # PLEASE remember a short description of the software and the LOCATION. # # This group is archived at http://stump.algebra.com/~cola/ # ##########################################################################