Sponsored Content
Full Discussion: cron job every 2 min
Top Forums UNIX for Dummies Questions & Answers cron job every 2 min Post 302112948 by georgeplus on Monday 2nd of April 2007 07:03:53 AM
Old 04-02-2007
this is the output:

$ sudo crontab -u george cronjob
11:54:40 installing file /usr/local/george/cronjob for user george
/usr/local/george/cronjob:1: Error while reading minutes field: skipping line.
11:54:40 george's fcrontab contains no entries : removed.
Modifications will be taken into account right now.

thanks
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies

2. 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

3. Shell Programming and Scripting

Cron job

I am trying to set up a simple cron job but it won't work Is there a special directory that the target program has to run from ?? I noticed that all the other jobs in the file were in /usr/local/bin but even when I put my target script in there it didn't run. Anyone have any idea why ?? ... (2 Replies)
Discussion started by: zapper222
2 Replies

4. Shell Programming and Scripting

CRON Job

Hi all, Pretty new to CRON but have been messing with Ubuntu for a while now Here is the situation/problem I have run into you. I currently run a very basic back procedure by executing a daily CRON job which copies all data from one directory to a USB drive & date stamps the copy:- cp... (2 Replies)
Discussion started by: 2scoops
2 Replies

5. UNIX Desktop Questions & Answers

Cron Job

Could some one help to so that I can set up a cron job such that it will check the changes of a particular network folder??? (5 Replies)
Discussion started by: coolmaddy
5 Replies

6. 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

7. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

8. UNIX for Dummies Questions & Answers

Cron every 5 min

Hi, I am trying to run a script in cron every 5 min in SOLARIS 10 When I do5 * * * * /path to fileor*/5 * * * * /path to file Doesn't work. Please let me know what should I put in the cron entry Thanks (2 Replies)
Discussion started by: Rossdba
2 Replies

9. 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

10. Solaris

How to run cron entry every 5 min during office hours only?

Hi I need to setuop a cron entry to run every 5 min, only in office hours (between 8:00AM to 18:00PM, I did the following: 0,5,10,15,20,25,30,35,40,45,50,55 8,9,10,11,12,13,14,15,16,17,18 * * * /home/xxx/zzz.ksh But somehow does not work. Could it be wrong? (8 Replies)
Discussion started by: fretagi
8 Replies
sharectl(1M)						  System Administration Commands					      sharectl(1M)

NAME
sharectl - configure and manage file sharing service SYNOPSIS
sharectl [-h] sharectl status [-h] [protocol] sharectl get [-h] [-p property]... protocol sharectl set [-h] [-p property=value]... protocol DESCRIPTION
The sharectl command operates on file-sharing protocols, such as NFS. The command sets the client and server operational properties, takes and restores configuration snapshots, and gets status of the protocol service. The get and set subcommands (see below) require root privileges or that you assume the Primary Administrator role. A non-privileged user can change the Solaris CIFS client's persistent settings when granted the SMBFS Management rights profile in the /etc/user_attr file. See user_attr(4) and rbac(5). An authorized user can use sharectl to set global values for Solaris CIFS server properties in the Solaris server management facility. See smb(4). OPTIONS
The following options are supported: -h Displays usage message. -p property[=value] Specifies a property. See "Subcommands," below. Subcommands sharectl supports the subcommands described below. The form of a sharectl command is: # sharectl subcommand [option] get [-p property] protocol Get the property values for the specified protocol. If no -p option is provided, get all the properties for the specified protocol. For NFS, properties correspond to entries in the /etc/default/nfs file. See nfs(4). set [-p property=value]... protocol Set properties for the specified file sharing protocol. status [protocol] Display status of the specified protocol, or, if no protocol is specified, of all file-sharing protocols. EXAMPLES
Example 1 Setting a Property The following command sets the minimum version of the server NFS protocol to version 3. % sharectl -p server_versmin=3 nfs Example 2 Getting Properties The following command gets the properties for the NFS protocol. % sharectl get nfs lockd_listen_backlog=32 lockd_servers=20 lockd_retransmit_timeout=5 grace_period=90 nfsmapid_domain=sun.com servers=16 server_versmin=2 server_versmax=4 max_connections=-1 The following command gets the value of the grace_period property for the NFS protocol. % sharectl get -p grace_period nfs grace_period=90 Example 3 Obtaining Status The following command obtains the status of all file-sharing protocols on a system. % sharectl status nfs enabled Example 4 Configuring Global Settings The following command shows how an authorized user can use sharectl commands to configure global settings for the ex.com environment in the service management facility (SMF). See nsmbrc(4) for a description of the example environment, ex.com. See smf(5) for a description of the SMF. # sharectl set -p section=default -p workgroup=SALES -p timeout=5 smbfs # sharectl set -p section=FSERVER -p addr=fserv.ex.com smbfs # sharectl set -p section=RSERVER -p workgroup=REMGROUP -p addr=rserv.ex.com smbfs # sharectl set -p section=RSERVER:george -p timeout=30 smbfs # sharectl set -p section="SSERV:*:POKY" -p addr=sserv.ex.com -p timeout=25 smbfs Example 5 Displaying Current Settings The following command shows how an authorized user can use the sharectl get command to view the global settings for smbfs in the SMF. The values shown are those set by the previous example. % # sharectl get smbfs [default] workgroup=SALES timeout=5 [FSERVER] addr=fserv.ex.com [RSERVER] workgroup=REMGROUP addr=rserv.ex.com [RSERVER:george] timeout=30 [SSERV:*:POKY] addr=sserv.ex.com timeout=25 EXIT STATUS
0 Successful completion. non-zero Command failed. FILES
/usr/include/libshare.h Error codes used for exit status. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWcsu | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
sharemgr(1M), nfs(4), nsmbrc(4), user_attr(4), attributes(5), rbac(5), smb(4), smf(5), standards(5) SunOS 5.11 16 Mar 2009 sharectl(1M)
All times are GMT -4. The time now is 05:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy