Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Script should check and run only on Sunday Post 302906894 by wisecracker on Tuesday 24th of June 2014 09:16:25 AM
Old 06-24-2014
Hi nanz143...

I am with Don here...

I have no idea how you changed my code and got it to work, plus, you now have a totally different requirement to your OP.

So you are saying that Sunday is no longer a requirement?

So EXACTLY what is the requirement now?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

check in unix shell script so that no one is able to run the script manually

I want to create an automated script which is called by another maually executed script. The condition is that the no one should be able to manually execute the automated script. The automated script can be on the same machine or it can be on a remote machine. Can any one suggest a check in the... (1 Reply)
Discussion started by: adi_bang76
1 Replies

2. Solaris

How to check for Saturday or Sunday

Hi , I have a date parameter passed in YYYYMMDD format , how can I check whether it is Sat or Sun on Solaris box , as we can do the same easily on linux box by using date -d YYYYMMDD '+a' . Any pointres will be really helpful . (5 Replies)
Discussion started by: harpreetanand
5 Replies

3. Shell Programming and Scripting

Check if script run by a user directly or via other scripts

Hi, i have a script 'a.sh' that should be called only by certain scripts like b.sh, c.sh Inside a.sh, how can i determine 1) if this script was run directly from command prompt (or scheduler) 2) if called via other scripts? Is there an easy way to get parent process name (not just pid),... (2 Replies)
Discussion started by: ysrinu
2 Replies

4. Shell Programming and Scripting

Crontab job to run every sunday

Hello, I wanted to run one of my shell script for every sunday at 5PM. Here is the crontab entry i am using.. 00 17 * * 0 /inventory/update.sh > /inventory/update.log 2>&1 The job is not kicking on sunday at the specified time.. Am i missing anthing? Any help is appreciated... (2 Replies)
Discussion started by: govindts
2 Replies

5. Shell Programming and Scripting

perl script to check if empty files are created and delete them and run a shell script

I have a local linux machine in which the files are dumped by a remote ubuntu server. If the process in remote server has any problem then empty files are created in local machine. Is there any way using perl script to check if the empty files are being created and delete them and then run a shell... (2 Replies)
Discussion started by: hussa1n
2 Replies

6. UNIX for Dummies Questions & Answers

Run script on every second sunday

I was to schedule a script in a crontab after every 15 days specically on every 2nd Sunday. I know that i can schedule on basis of weekdays, but can it be done by skipping in between???:wall: (5 Replies)
Discussion started by: masquerer
5 Replies

7. UNIX for Advanced & Expert Users

Autosys job run on Sunday

Hi, I need to create a autosys job which will run on every sunday at 7:30 AM NY time for each 10 min interval of time. days_of_week: su start_mins: 0,10,20,30,40,50 run_window:"07:30" Is it fine? Please help Thanks, Anup (2 Replies)
Discussion started by: anupdas
2 Replies

8. Shell Programming and Scripting

Script to run php and check value in txt

Hello, I'm looking for a bash script, that I will run from cron, that executes a php script. After 5 minutes that the php script is executed, the bash script, must check a value in a text file /public_html/check.txt if check.txt = 0 the script will stop, if check.txt is not = 0 it must... (0 Replies)
Discussion started by: andymc1
0 Replies

9. Shell Programming and Scripting

How to check if script is run via cron or manual=command line?

Hi all, I have a script that can be run via cron or via the command line. Is there any way that I can place something on the script to be able to distinguish/differentiate whether the script was run via a user in the command line or whether it was run from the cron? (3 Replies)
Discussion started by: newbie_01
3 Replies

10. Shell Programming and Scripting

Run script on every last sunday of the month

Hi ALL, I have been testing this script to run for every last Sunday of the month,looks like month which have 5 sunday (july 2016 )is not passing this and failing every time. Here is what I am using, current_date=31 echo " CURRENT DAY -> $current_date" if ... (2 Replies)
Discussion started by: netdbaind
2 Replies
patch_active_text(5)						File Formats Manual					      patch_active_text(5)

NAME
patch_active_text - dynamically enable or disable running executable text to be modified via mprotect() VALUES
Fail Safe Default semantics is enabled Allowed values or DESCRIPTION
This tunable allows write access to text of a running process such that the active text can be modified. When this tunable is enabled, can be used with a special flag, to modify the text of a running executable. By default, does not work on text of a process. Enabling the tunable allows to work on text segments of a process. Making text writable will create a private copy of the text to the process using this feature. Once with special flag allows running text to be modified, further invocations of on text of a process with other prot flags are also allowed. For must always be used with (see mprotect(2)). must always be used on text address range. After the first invocation of further mprotect(2) calls will work on text segments of process with any other prot flags; in other words, will work on text with or any combinations of the above. The only requirement is that both these flags must be invoked first. Who Is Expected to Change This Tunable? System administrators who wish to change the default behavior. Restrictions on Changing Changes to this tunable take effect immediately. When Should the Tunable Be Turned Off? If an application expects to fail on text segments, the tunable should be turned off. What Are the Side Effects of Turning the Tunable Off? Applications will no longer be able to use on text of a process. When Should the Tunable Be Turned On? If an application wants its text segment to be writable and also wants to be able to work on text of processes, this tunable must be turned on. Making text writable will create a private copy of the text to the process using this feature. What Are the Side Effects of Turning the Tunable On? Memory consumption in the system will increase. This is because with the process will create a private copy of the shared text on first invocation. It should also be noted that large page benefits on text segments will be lost. What Other Tunables Should Be Changed at the Same Time? None. WARNINGS
All HP-UX kernel tunable parameters are release specific. This parameter may be removed or have its meaning changed in future releases of HP-UX. Installation of optional kernel software, from HP or other vendors, may cause changes to tunable parameter values. After installation, some tunable parameters may no longer be at the default or recommended values. For information about the effects of installation on tun- able values, consult the documentation for the kernel software being installed. For information about optional kernel software that was factory installed on your system, see at AUTHOR
was developed by HP. SEE ALSO
mprotect(2), copy_on_write(5) Tunable Kernel Parameters patch_active_text(5)
All times are GMT -4. The time now is 12:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy