Consultor Eletrônico



Kbase 19702: RDM - Cannot Run the Daily Script
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   15/10/2008

SUMMARY:
The script for the RDM $HOME/bin/daily file does not run properly. It
fails when run manually or with the cron command because it encounters
a file named -sh.log. The mv command within the script tries to
interpret the "-" as an argument which generates the mv failure error:

$ ./daily
mv: illegal option -- h
mv: illegal option -- .
mv: illegal option -- l
mv: illegal option -- o
mv: illegal option -- g
Usage: mv [-f] [-i] f1 f2
mv [-f] [-i] f1 ... fn d1
mv [-f] [-i] d1 d2

Contents of the -sh.log file:

--- -sh START ---
Thu Apr 13 09:25:53 EDT 2000
** Starting Menu System (Multi-User)
** Parameters:
Thu Apr 13 09:26:16 EDT 2000
--- -sh END ---

--- -sh START ---
Thu Apr 13 09:26:30 EDT 2000
-sh: Checking PRA Database status...
-sh: Checking tssolar1
-sh: Checking new
Thu Apr 13 09:27:14 EDT 2000
--- -sh END ---

--- -sh START ---
Thu Apr 13 09:58:58 EDT 2000
** Starting Menu System (Multi-User)
** Parameters:
Thu Apr 13 10:00:54 EDT 2000
--- -sh END ---

SOLUTION:
As an interim workaround, rename the -sh.log file when running the script.