Re: cronjobs with errors in shell scripts
Navin wrote:
I have a list of cronjobs.but they are generating errors. I don't
know how to debug those scripts. kindly please advice if anyone knows
how to debug the shell script with sample code
If your scripts are bash scripts start them on the command line like this:
bash -x script >errors.log 2>&1
and analyse its logfile error.log.
--
Best regards | "The only way to really learn scripting is to write
Cyrus | scripts." -- Advanced Bash-Scripting Guide
.
Relevant Pages
- Re: gpo scripts
... I haven't tried the if debug thing yet, but I have run rsop and according to ... that, the scripts run successfully, but the drives aren't mapped and outlook ... (microsoft.public.windows.server.active_directory) - [UNIX] More than Fourteen CGIscript.net Scripts Have Path Disclosure Vulnerability
... The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com ... CGIscript.net sells perl/cgi web scripts ... CGI.pm to die with an error would make the script to display the debug ... CGI.pm error occurs, including server paths, form input, and environment ... (Securiteam) - Re: cronjobs with errors in shell scripts
... know how to debug those scripts. ... has been sent by email to the user whose cron jobs these are. ... Add the command env to ... (comp.unix.shell) - define() failing?!?
... I am just new to PHP and learning the language. ... false depending on success or failure in defining the constant. ... The reason I want to use define is to define a DEBUG constant in my ... defineof debug at the top of all PHP scripts to my understanding ... (comp.lang.php) - Re: How to debug VBS
... I debug VB scripts using a 3rd party editor. ... //X prompts you to debug before the first libne of the script executes. ... //D enables debugging and you are prompted to debug if an unhandled error ... (microsoft.public.scripting.vbscript) |
|