Sponsored Content
Top Forums Programming kill(0,-9) don't kill the process Post 302122062 by ilko_partizan on Tuesday 19th of June 2007 03:57:54 AM
Old 06-19-2007
You can get a error in string format from your programme with function 'strerror'.
This is part of code you needed:

Code:
#include <errno.h>
#include <stdio.h>

fprintf(stderr, "Error: %s\n", strerror(errno));

This man page describes 'errno'.
http://www.freebsd.org/cgi/man.cgi?q...SE&format=html

This man page describes 'strerror'.
http://www.freebsd.org/cgi/man.cgi?q...SE&format=html

Best regards,
Iliyan Varshilov

Last edited by ilko_partizan; 06-19-2007 at 05:07 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

When kill doesnt work, how to kill a process ?

Hi All, I am unable to kill a process using kill command. I am using HP-UX system. I have tried with kill -9 and i have root privilages. How can i terminate this daemon ? ? ? Regards, Vijay Hegde (3 Replies)
Discussion started by: VijayHegde
3 Replies

2. Shell Programming and Scripting

how to start a process and make it sleep for 5 mins and then kill that process

how to start a process and make it sleep for 5 mins and then kill that process (6 Replies)
Discussion started by: shrao
6 Replies

3. Shell Programming and Scripting

Kill a process without using kill command

Sorry, posted the question in other forum. (0 Replies)
Discussion started by: sudhamacs
0 Replies

4. Linux

Kill a process without using kill command

I want to Kill a process without using kill command as i don't have privileges to kill the process. I know the pid and i am using Linux 2.6.9 OS. (6 Replies)
Discussion started by: sudhamacs
6 Replies

5. Shell Programming and Scripting

Shell Script to Kill Process(number of process) Unix/Solaris

Hi Experts, we do have a shell script for Unix Solaris, which will kill all the process manullay, it used to work in my previous env, but now it is throwing this error.. could some one please help me to resolve it This is how we execute the script (and this is the requirement) ... (2 Replies)
Discussion started by: jonnyvic
2 Replies

6. UNIX for Dummies Questions & Answers

Script to start background process and then kill process

What I need to learn is how to use a script that launches background processes, and then kills those processes as needed. The script successfully launches the script. But how do I check to see if the job exists before I kill it? I know my problem is mostly failure to understand parameter... (4 Replies)
Discussion started by: holocene
4 Replies

7. Windows & DOS: Issues & Discussions

Kill a process

Hi, How can I terminate process using vbscript. PLEASE NOTE, I need to terminate process that runs under windows 64-bit environment as native 64 (not using select * from win_32_Process) (3 Replies)
Discussion started by: cratercrabs
3 Replies

8. Solaris

Cannot kill a process with kill -9

Hello everyone, I have a process that I want to kill. I have tried kill-9 PID but it doesn't work. I have tried preap PID but it doesn't work too. The parent of my process is the process whose PID is 1, so I can't kill it. My OS is a Solaris 9. Can anyone help me understand what's going... (3 Replies)
Discussion started by: adilyos
3 Replies

9. Shell Programming and Scripting

Kill an specific process ID using the KILL and GREP commands

Good afternoon I need to KILL a process in a single command sentence, for example: kill -9 `ps -aef | grep 'CAL255.4ge' | grep -v grep | awk '{print $2}'` That sentence Kills the process ID corresponding to the program CAL255.4ge. However it is possible that the same program... (6 Replies)
Discussion started by: enriquegm82
6 Replies

10. Shell Programming and Scripting

Why don't kill the script after 5s?

# watchdog process mainpid=$$ (sleep 5; kill $mainpid) & watchdogpid=$! sleep 100 kill $watchdogpid The sleep isn't be killed, I want the script to be killed ---------- Post updated at 03:03 AM ---------- Previous update was at 12:04 AM ---------- I just modify the format of my... (1 Reply)
Discussion started by: yanglei_fage
1 Replies
DACSSCHED(1)						       DACS Commands Manual						      DACSSCHED(1)

NAME
dacssched - rule-based command scheduling SYNOPSIS
dacssched [-h | -help] [-ll log_level] [-q] [{-r | -rules} rules_uri] [{-s | -sched} sched_uri] [-v] DESCRIPTION
This program is part of the DACS suite. It is a stand-alone program that neither accepts the usual DACS command line options (dacsoptions) nor accesses any DACS configuration files. The dacssched command runs other programs when specified conditions have been met. It does this by periodically examining a schedule, which, for each scheduled event, identifies the necessary conditions and the command line to be executed should the conditions be satisfied. Rules are stored separately from the schedule, although in a future version it might be possible to contain them with their schedule. Although dacssched is conceptually similar to cron(8)[1], atrun(8)[2], and other programs used to schedule a command to be executed or a reminder to be sent at certain times or dates, there are some important differences. First, because the DACS rule evaluation engine is used, conditions much more broad and complex than simply the time or date can be used to schedule a command - DACS expressions[3] are available. For instance, a rule to manage automated file backup could be written to take into account context other than simply the day of the week and the time of day, if necessary even running external programs to assist in making the determination. Second, both a schedule and the rules referenced by a schedule are accessed through the DACS virtual filestore, which means they can be stored in file or database, retrieved by HTTP, and so on. Note Although this program may be useful, it is currently merely a prototype intended for demonstration and experimentation purposes. Some configuration capabilities, features, and security steps required by a production version have not been implemented. The prototype must be invoked periodically; a production version would run in the background and automatically rescan the schedule at a given frequency. Note that because of its flexibility, the schedule must be polled at a suitable frequency - in general, the program cannot compute when the next scheduled event will occur. Also because events need not be triggered by a time or date, some events may need to "self-disabling" so that they are not repeatedly executed unintentionally. Operation The program loads a schedule, which either comes from a default file or a location specified on the command line. A schedule is an ordinary text file, each line of which is either blank, a comment, or a scheduled event. The file is processed in the order in which the events appear from the top. Initial whitespace on any line is ignored. A comment line begins with a "#" character. A scheduled event consists of a name, followed by whitespace, followed by a command. If name evaluates to True (i.e., it grants access), the command is executed through system(3)[4]. If rule evaluation fails because of an error, the event is not executed. Events are not removed from the schedule after their command has been executed. A name, which must begin with a slash, has no significance to dacssched; it is simply a label that is used to identify the rule to apply and is matched against a rule's service element. Here is a simple schedule containing one event: # A simple schedule /setdate /usr/local/sbin/rdate -a If the condition labelled /setdate is True the specified command will be executed. A simple rule such as the following might be associated with the event: <acl_rule status="enabled"> <services> <service url_pattern="/setdate"/> </services> <rule order="allow,deny"> <allow> time(hour) eq 2 and time(min) eq 0 </allow> </rule> </acl_rule> This rule enables the event /setdate at 2:00am every day. We will assume that the schedule is processed exactly once per minute. Internally, dacssched converts the scheduled event above into the expression: rule("/setdate", rule_uri) (where rule_uri specifies the ruleset to use) and then evaluates the expression. Please refer to the rule predicate[5] for additional information. OPTIONS The arguments are processed as they are examined (left-to-right) and their ordering can be significant. By default, the program will look for a schedule in the file ${Conf::DACS_HOME}/dacssched/sched. (default: /usr/local/dacs/dacssched/sched) The default location for the rules is ${Conf::DACS_HOME}/dacssched/acls. (default: /usr/local/dacs/dacssched/acls) The following command line flags are recognized: -h Prints the usage blurb. -ll log_level Set the debugging output level to log_level (see dacs(1)[6]). The default level is warn, and the -v flag bumps the level to debug or trace. -q Be quiet, except for error messages. The -v and -ll flags are independent of this. -r rule_uri -rules rule_uri This flag specifies the ruleset to be used. It can be an absolute pathname or a URI in the syntax of the VFS[7] configuration directive. Examples: -r "[acls1]dacs-fs:/local/acls" -rules /usr/local/myrules -s sched_uri -sched sched_uri This flag specifies the schedule. It can be an absolute pathname or a URI in the syntax of the VFS[7] configuration directive. -v Increase the level of debugging output. The flag may be repeated. DIAGNOSTICS
The program exits 0 if everything was fine, 1 if an error occurred. SEE ALSO
dacs.exprs(5)[3], dacs.acls(5)[8] AUTHOR
Distributed Systems Software (www.dss.ca[9]) COPYING
Copyright2003-2012 Distributed Systems Software. See the LICENSE[10] file that accompanies the distribution for licensing information. NOTES
1. cron(8) http://www.freebsd.org/cgi/man.cgi?query=cron&apropos=0&sektion=8&manpath=FreeBSD+9.0-RELEASE&format=html 2. atrun(8) http://www.freebsd.org/cgi/man.cgi?query=atrun&apropos=0&sektion=8&manpath=FreeBSD+9.0-RELEASE&format=html 3. expressions http://dacs.dss.ca/man/dacs.exprs.5.html 4. system(3) http://www.freebsd.org/cgi/man.cgi?query=system&apropos=0&sektion=3&manpath=FreeBSD+9.0-RELEASE&format=html 5. rule predicate http://dacs.dss.ca/man/dacs.exprs.5.html#rule 6. dacs(1) http://dacs.dss.ca/man/dacs.1.html 7. VFS http://dacs.dss.ca/man/dacs.conf.5.html#VFS 8. dacs.acls(5) http://dacs.dss.ca/man/dacs.acls.5.html 9. www.dss.ca http://www.dss.ca 10. LICENSE http://dacs.dss.ca/man/../misc/LICENSE DACS 1.4.27b 10/22/2012 DACSSCHED(1)
All times are GMT -4. The time now is 03:55 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy