Sponsored Content
Full Discussion: Snapshot of part of the cron
Top Forums UNIX for Dummies Questions & Answers Snapshot of part of the cron Post 3602 by Neo on Friday 6th of July 2001 09:58:53 PM
Old 07-06-2001
Got it Smilie

You want a script that will compare some parameters, like time against the crontab file and output that info.

Thats a pretty easy job for PERL or some other scripting language. You basically set up your filters in a script (as you originally suggested) add some command line switches so you can input your parameters, read the crontab file in the script and send the results to a file.
 

10 More Discussions You Might Find Interesting

1. Solaris

FS snapshot problems

Hi, I'm working with fssnap command because I would search an alternative backup metod. My server has Solaris 9 installed and following sys admin manual, I created some snapshots, this is not difficult. But the problem is here: following manual I create without problem snapshots, for example the... (1 Reply)
Discussion started by: bonovox
1 Replies

2. Shell Programming and Scripting

comparing part of header with part of detailed records.

Hi there, I am lil confused with the following issue. I have a File, which has the following header: IMSHRATE_043008_101016 a sample detailed record is :9820101 A982005000CAVG030108000000000000010169000MAR 2008 9820102 MAR 2008 D030108 ... (1 Reply)
Discussion started by: cmaroju
1 Replies

3. Shell Programming and Scripting

comment out a cron job as part of a script

Greetings, I am creating a ksh script to automate the installation of a utility on many servers. As part of this install, I want to check for a job in root's crontab. If the job exists, I need to comment it out. I know I will need to copy off the crontab then read it back in, but I am... (4 Replies)
Discussion started by: 22blaze
4 Replies

4. Linux

LVM snapshot question

Hi All, I am planning to do a LVM replicate to another server. Example : server1.foo.com has / , /boot , swap and few LVM partitions. All are in /dev/sda disk of size 80GB. /dev/sda5 is a LVM partition which has only one vg00 and it has 2 LV's (/var and /usr) and a SAN storage connected to... (0 Replies)
Discussion started by: rakrhn
0 Replies

5. Solaris

Can not snapshot zone

For the life of me, I cannot figure out the syntax unless it's my configuration. Zone path is /zpool/zones/oracle11zone2 It is not running. -bash-3.00# zfs snapshot zpool/zones/oracle11zone2@prepatch cannot open 'zpool/zones/oracle11zone2': dataset does not exist -bash-3.00# zfs snapshot... (13 Replies)
Discussion started by: LittleLebowski
13 Replies

6. Solaris

zfs - get the name of the last snapshot

I have installed Solaris 11 Express on my server and want to set up automatic backuping using zfs snapshots. In the backup script I need to find out the name of the last snapshot of the given filesystem (in order to refer to it as the startpoint of an incremental backup). What is the best way to do... (4 Replies)
Discussion started by: RychnD
4 Replies

7. Shell Programming and Scripting

[Solved] Printing a part of the last line of the specific part of a file

Hi, I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this: Name =A xxxxxx yyyyyy zzzzzz aaaaaa bbbbbb Value = 57 This is necessary because in a file there are written more lines which... (6 Replies)
Discussion started by: wenclu
6 Replies

8. OS X (Apple)

Snapshot backup

Hi all: I'm trying to do the following: 1) Each monday (for every week or bi-weekly) I'll perform a full backup of my 2 Tb RAID 1 system to an external eSATA 2 Tb HDD. I'll move this HDD to a different physical place (my home i.e). 2) Each day after monday until the next backup, I want to... (3 Replies)
Discussion started by: alvgarci
3 Replies

9. Solaris

Snapshot analyze

Hi, Is there any tool is available for analyzing Oracle X86 snapshot output. Thanks in advance. (1 Reply)
Discussion started by: sunnybee
1 Replies

10. UNIX for Beginners Questions & Answers

How to make a loop to read the input from a file part by part?

Hi All, We've a VDI infrastructure in AWS (AWS workspaces) and we're planning to automate the process of provisioning workspaces. Instead of going to GUI console, and launching workspaces by selecting individual users is little time consuming. Thus, I want to create them in bunches from AWS CLI... (6 Replies)
Discussion started by: arun_adm
6 Replies
bcrontab(1)						      General Commands Manual						       bcrontab(1)

NAME
bcrontab - Manage users crontab files SYNOPSIS
bcrontab [ -u user ] file bcrontab [ -u user ] { -l | -r | -e } DESCRIPTION
bcrontab interfaces with the bcron-spool daemon to manage crontab files in the privileged spool directory. OPTIONS
-u user Tell bcron-spool that we are acting on behalf of the named user. bcron-spool will only accept the username if bcrontab is running as either root or the same user ID as the named user. -l List the cronab crontab to standard output. -r Remove the user's crontab. -e Edit the current crontab. ENVIRONMENT
VISUAL If this is set, it is used as the editor to invoke to edit a crontab. EDITOR If $VISUAL is not set and this is, it is used as the editor to invoke to edit a crontab. If neither are set, /bin/vi is used. BCRON_SOCKET The path to the named socket used to communicate with bcron-spool. Defaults to /var/run/bcron-spool. LOGNAME USER These two variables are used, in order, to determine the user name invoking the program. One must be set if the -u option is not used. FILES
bcrontab tries to writes a temporary file into the current directory, and then into /tmp if that fails, in order to edit the current crontab. SEE ALSO
bcron-spool(8), crontab(5) AUTHOR
Bruce Guenter <bruceg@em.ca> bcrontab(1)
All times are GMT -4. The time now is 10:35 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy