Is there a way to send the syslog output for a given facility to stderr or stdout?
I do not want to use the "tail" command to achieve this, I would like it to go directly to stderr.
Thanks in advance (1 Reply)
Hello all
I wander if I make for example " ls -l "
And it gives me all the files in the directory with the additional info like data size and privileges
But what if I like to filter the stout result for example by date
When I try to do:
echo "`ls -l`" | grep "Jan 12"
it gives me the... (2 Replies)
I have issue running functions under case statement
#!/bin/bash
single() {
Commands
}
multiple() {
Commands
}
until ; do
echo -e " \t \t M A I N - M E N U Perforce delete script \n" (1 Reply)
Pls this is emergency.I have written a script which is taking input from another script. and the contents of my second script are acting as functions to my main script.Now the problem is that in one of the functions i want the script ececution to stop and start when user enters any character r... (2 Replies)
Hi All,
I have an awk statement and a function defined in a script.
I am trying to call the function from inside awk statement, i.e.
awk ' myFunk () ;' filename
But when I define myFunk() before awk, then I receive this error:
s2.sh: line 48: syntax error: unexpected end of file
and... (5 Replies)
Hey everyone,
I am just trying to figure out how to embed a function in an if statement.
I have the following test script so far:
PRIMARY=192.168.1.2
SECONDARY=192.168.1.1
function checkAlive {
ping -c 1 -q $1
}
if
then
echo "equaled 0"
fi
This... (1 Reply)
So I'm trying to figure out a way to do some very simple formatting on standard output. I have a command that I will run (many many times) the output will either be true or false. So all i really want is to run the command and if its true write true in green and if its false to write false in red.... (10 Replies)
Hi,
I have the below script that should take the command line option and run the desired script on another server. Only it doesn't seem to run the function, infact it just returns back to the command line.
case $1 in
1) msgbacklog() ;;
2) jobstatus() ;;
... (10 Replies)
Hi,
I have the following code in which i am trying to find ceil of 10th & 11th fields. For finding ceil i have a function in the awk statement. When i test it for some values say on command line it gives correct response(say $10=0 & $11=750). But when the same value occurs in a file having more 3... (5 Replies)
A sample.c file is written with only one single statement.
main;
Segmentation fault occurred when executed that file.
Any statement other than main; is written, for example unix; then it won't compile.
why is this behaviour ! (2 Replies)
Discussion started by: techmonk
2 Replies
LEARN ABOUT DEBIAN
dpm-rfiod
DPM-RFIOD(8) Rfio Administrator Commands DPM-RFIOD(8)NAME
dpm-rfiod- Remote file access daemon
SYNOPSIS
dpm-rfiod [ -d ] [ -f filename ] [ -l ] [ -p port ] [ -s ] [ -t ] [ -4 | -6 ] [ -L log_level ]
DESCRIPTION
dpm-rfiod start the daemon handling remote file access requests. This command is usually executed at system startup time (/etc/rc.local).
dpm-rfiod uses for the streaming mode (v3) one control port and one data port. The range of data ports to be used by dpm-rfiod can be set
with the environment variable RFIO_PORT_RANGE.
OPTIONS -d Turn on printing of debug messages. Default output device is stderr.
-f filename
Output filename for error, logging and debugging messages. Normal error messages are sent to syslog unless otherwise specified.
Two filenames are special : "stderr", which will send messages to standard error and "syslog" which will send to syslog.
-l Turn on printing of log messages. Default output device is in /var/log/rfio/log.
-p port
Specify a network port for the service to listen on. If this option is not given the value RFIO_PORT defined in rfio_constants.h is
used.
-s Turn on Standalone mode. This option should always be set when dpm-rfiod is not started by inetd.
-t Turn on single threaded mode. Useful for debugging as no processes are created.
-4 only try to listen on IPv4 addresses
-6 only try to listen on IPv6 addresses
-L log_level
Specify the logging level. Default 6 (LOG_INFO).
EXAMPLE
/usr/sbin/dpm-rfiod -sl
SEE ALSO syslog(8), tcp(4)AUTHOR
LCG Grid Deployment Team
LCG $Date: 2010-08-30 08:39:36 +0200 (Mon, 30 Aug 2010) $ DPM-RFIOD(8)