Sponsored Content
Full Discussion: Cron job at system start up
Top Forums Shell Programming and Scripting Cron job at system start up Post 302078964 by tayyabq8 on Thursday 6th of July 2006 01:07:46 AM
Old 07-06-2006
The system startup files are located in /etc/rc2.d. You can add a file to this directory with the commands you want to run at system startup. Suppose you want to delete some temp files at system startup, you could put a file named TempFileDel in your /etc/rc2.d with the commands to delete your temporary files, so it'll run every time system reboots.

Regards,
Tayyab
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

cron does not start the need job

Hi, can you please help me with one problem? There is some server, there are a lot of AIX applications which run on this server under different UserIDs. These applications starts via crontab. From time to time some application doesn't start. What can this "not-action" be dependent on? At... (5 Replies)
Discussion started by: Anta
5 Replies

2. HP-UX

How to create a cron job and run in quality system

Hi Experts, I'm a SAP Basis, I have a small doubt would request you please help on this... 1. I wold like to copy files from one system to another system? as per my knowledge "we have to mount the prod filesystem on the quality box and do a copy every day thru crontab script, or do it via... (2 Replies)
Discussion started by: mahantysk
2 Replies

3. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

4. Solaris

Cron Job -- auto start process when it dies

I would like to setup a Cron job to check weather X process is running or not. if it is not running then start that X process with a log message.... can any one help writing a script? thanks (3 Replies)
Discussion started by: chandravadrevu
3 Replies

5. Shell Programming and Scripting

Script to Start a Job after finding the Old job completed

Hi Experts, I need a script advice to schedule 12 jobs ( SAS Codes execute back ground ). Algorithem: 1. Script checks first job. 2. Finds first job is done; invoke second job. 3. finds second job is done; invoke third job. .. Request you to please assist. (3 Replies)
Discussion started by: Jerald Nathan
3 Replies

6. Shell Programming and Scripting

get system date, format it, pass it as a parameter to a perl script - all in cron job

I am trying to get the string containing date - in a specfic format actually, although I think that part is inconsequencial - 1110226^1110226^1110226^1110226^1110226 - through echo or printf or in some other way - created within a cront job and passed as a parameter to a perl script. Now, I know... (3 Replies)
Discussion started by: v8625
3 Replies

7. UNIX for Dummies Questions & Answers

Setup a cron job and specified the start and end time

Hi guys, How can I specify the start and end time of a cron job. And my start time and end time are specified by minutes. For example, I want to set up a cron runs every 3 minutes from 18:40 to midnight. How can i do this please? Many thanks Best regards, Clu (4 Replies)
Discussion started by: clu
4 Replies

8. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

9. UNIX for Advanced & Expert Users

Autosys Job: Job did not start

I have submitted an autosys job and force start it. Autosys hit the job 4 times to restart but it did not start and finally I terminate the job. Any idea why the job did not start. Below is the code I executed. 1214 missun0ap /export/home/bzn97r/develop/dswi/jil$ sendevent -E FORCE_STARTJOB... (0 Replies)
Discussion started by: jnrohit2k
0 Replies

10. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies
autosysconfig(8)					      System Manager's Manual						  autosysconfig(8)

NAME
autosysconfig - Maintains the list of dynamic kernel subsystems that are automatically configured SYNOPSIS
/sbin/init.d/autosysconfig add | delete | list [subsystem-name] DESCRIPTION
Use the autosysconfig program to maintain the kernel's list of dynamic subsystems that are automatically configured at each system startup. The following list describes the autosysconfig commands: Adds a dynamic subsystem to the list. At each system startup, the specified sub- system is automatically configured into the kernel. (The object module that contains the subsystem must exist in the /subsys or /var/subsys directory for automatic configuration to work correctly.) You must specify the subsystem-name parameter with the add command. Deletes a dynamic subsystem from the list. At each system startup, the specified subsystem is omitted from the kernel. You must specify the subsys- tem-name parameter with the delete command. Lists the dynamic subsystems that are automatically configured at system startup. The system issues the sysconfig -c command to configure dynamic subsystems at system startup. The subsystems are added to the kernel dur- ing the execution of the init program. No dynamic subsystems are automatically configured by default. You must add a subsystem name to the list to enable automatic configuration of that subsystem. EXAMPLES
The following are examples of using the autosysconfig command: To add a subsystem to the list of automatically configured subsystems, issue the following command: # /sbin/init.d/autosysconfig add lat This command adds the lat (Local Area Terminal) subsystem to the list. To see what subsystems are on the list, issue the following command: # /sbin/init.d/autosysconfig list Current automatic configuration list includes the following dynamic subsystems: lat SEE ALSO
Commands: sysconfig(8), sysconfigdb(8) System Administration autosysconfig(8)
All times are GMT -4. The time now is 10:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy