Let me explain you clearly. The expectation of script_1 - every month 25th it would run. Script_2 - every day and script_3 every quarterly month end. For eg. if script_1 fails due to any reason on 25th and if i re-run the main_script on 26th. In this scenario script_1 will not run on 26th but i would like to run on 26th because it failed on 25th but i tried re-running on next day or any other day on same month, if i re-run the main_Script for that month then it should script_1 should run. In this scenario if i take script_2 which runs every day shouldn't run for again because it was already successful on 25th daily run
If you want to force the main script to run script_1 learn about getopt/getopts and put in a flag to force the running of script_1:
Now if the date is not the 25th you check to see whether ${force_script1} is set to "true" (the string, not the boolean).
I don't understand why you don't want to run script_2 if you are having to rerun script_1. It's a different day; you are running script_2 daily. Right? Unless the main script is being run daily from cron?
And there is this:
Quote:
In this scenario if i take script_2 which runs every day shouldn't run for again because it was already successful on 25th daily run
which implies that script_2 should not run EVER on the 26th because it ran successfully on the 25th!
Hi ,
I am relatively new to unix...
Can u pls help me out to find out if the first day of the month is a working day ie from (Monday to Friday)...using Date and If clause in Korn shell..
This is very urgent.
Thanks for ur help... (7 Replies)
I know I can't schedule this in cron and would have to write a wrapper around my script and schedule it in cron ....but not sure how do to this?
How do I exclude Monday if the 2nd day of the month falls on a Monday?
Thanks.
I tried this:
0 0 2 * 0,2-6 command
And I know this doesnt... (2 Replies)
Hi All,
I need to find the previous month last day minus one day, using shell script. Can you guys help me to do this.
My Requirment is as below:
Input for me will be 2000909(YYYYMM)
I need the previous months last day minus 1 day timestamp. That is i need 2000908 months last day minus ... (3 Replies)
hi all
i need a script which will find all the processes witht the name of xxx and kill all those processes that runs for more than 1 day.
Regards (3 Replies)
Hi,
I would like to write a script that checks if a file ('counter') was modified the previous day, if so erase its contents and write 00000000 into it.
For e.g. if the file 'counter' was last modified at 11.30pm on 24th May and the script runs at 12.15am of 25th May, it should erase it's... (1 Reply)
Hello Experts,
I have a script which i want to run the on last day of every month.
let say I have backup.sh script which i want to run it every month last day.
Can anyone please help :confused:
thanks (4 Replies)
Hi all,
I currently have a UNIX file maintenance script that runs daily as a cron job.
Now I want to change the script and create functions/sub inside it that runs on a weekly or monthly basis.
To run all the scripts' daily maintenance, I want to schedule it in cron as simply maint.sh... (1 Reply)
Hi,
I want to run a job in cron on a specific date(say 25th of every month) excluding holidays. Can anyone provide some hints to do this? Thanks for any inputs. (1 Reply)
I am looking for a unix script which could run a job on 2, 4 and 7 working day of the month.
if the days are falling on the saturday/sunday. it should run on the next day.
Thank you.. (9 Replies)
Discussion started by: tradingspecial
9 Replies
LEARN ABOUT DEBIAN
falrun
flcrun(1) Falcon User Manuals flcrun(1)NAME
flcrun - The Falcon command line execution tool
SYNOPSIS
falrun [options] [main_script] [script_options]
DESCRIPTION
The falrun command line tool is a subset of the falcon(1) command line interpreter which only executes pre-compiled falcon scripts in
".fam" module files. This is meant to launch Falcon based application which were compiled on a different system, and whose source is not
shipped.
OPTIONS -e <enc>
Set given encoding as default for VM I/O. Unless the scripts select a different I/O encoding, the streams that are provided to the
falcon VM (like the output stream for printf) are encoded using the given ISO encoding. This overrides the default encoding that is
detected by reading the environment settings. In example, if your system uses iso-8859-1 encoding by default, but you want your
script to read and write utf-8 files, use the option -e utf-8
-h or -?
Prints a brief help on stdout and exits.
-L <path>
Changes the default load path. This overrides both the internal built in settings and the contents of environment variable FAL-
CON_LOAD_PATH. Each directory in the path should be separated by ";" and use forward slashes, like this:
falrun -L ./;/usr/share/falcon_mod;./myapp
-p <module>
Preloads the given module as if it were loaded by the main script.
-P Ignore default load paths and uses only the paths set via the -L switch.
-v Prints copyright notice and version and exits.
FILES
/usr/lib/libfalcon_engine.so
Default location of the Falcon Engine loadable module.
/usr/lib/falcon
Default directory containing Falcon binary modules.
ENVIRONMENT
FALCON_LOAD_PATH
Default search path for modules loaded by the scripts.
FALCON_SRC_ENCODING
Default encoding for the source scripts loaded by falcon (when different from the system default).
FALCON_VM_ENCODING
Default encoding for the VM I/O streams (when different from system default).
AUTHOR
Giancarlo Niccolai <gc@falconpl.org>
SEE ALSO falcon(1)faldisass(1)LICENSE
This document is released under the "GNU Free Documentation License, version 1.2". On Debian systems, the complete text of the Free Docu-
mentation License, version 1.2, can be found in /usr/share/common-licenses/.
Falcon toolset April 2007 flcrun(1)