There is not general rule-of-thumb in suppressing output many commands support a (-q or --quiet) option but many do not. check your on-line manual for the particular command and if no quiet option is available you may have to redirect standard out.
For example:
But think carefully what you want to happen in the case of an error (eg the plugins folder is empty, you run out of disk space, etc). If no one is around to see or act on the error perhaps it needs to be captured to a file and emailed to someone who can deal with it later on.
This User Gave Thanks to Chubler_XL For This Post:
Hi:
I am currently working on a program which requires direct its ouput to a file here is an example
./proram arg_1 arg_2
when program ends all output will be arg_2 file
Is that possible I am not a bad programmer, However I am stuck there.
Can anyone give a hint?
Thanks
SW (1 Reply)
how make assign the output of the command (for example: grep "file" "string" ) in a variable ($name)?
i thing how put the result of the command (grep , cut, find ecc) in a variable..
IT's Possible ?? (1 Reply)
Hi all,
i type a command along with dtterm what i would like to have is that the output of the command to be shown in the new terminal .
Any Idea on how to acheive this? (0 Replies)
Hi all, I have a script which call a java program, the logging (to log file) in the program is done using log4j. However, as a safety measure, i still choose to direct standard error to another log file as follow
/usr/bin/java -classpath ${classpath} -Xmx128m TestingProgram 2>>... (1 Reply)
Hi,
I would like to list files: ls *.hdf
But I would like a copy of the output directed to the screen, but also APPENDED to a text file: test.txt
I have tried:
ls *.hdf | tee test.txt
However, that will just write over everything already existing in test.txt. How can I append the... (1 Reply)
Hi
i am compiling a source code by make command.
i want to redirect the output of make to a file but at the same time i want to see the output in terminal.
how to do this ?.
please suggest your idea.
thanks in advance.
Saravana
---------- Post updated at 05:24 PM ----------... (2 Replies)
(/home/user1)-> more script.sh
#!/bin/ksh
( echo open devicename
sleep 3;
echo user;
sleep 2;
echo password;
sleep 2;
echo "/info/dump"; ---------> This needs to redirect to a file .Can be number of pages
sleep 2;
echo "exit" ) | telnet
Please use code tags next time for... (2 Replies)
Below script perfectly works, giving below mail output. BUT, I want to make the script mail only if there are any D-Defined/T-Transition/B-Broken State WPARs and also to copy the output generated during monitoring to a temporary log file, which gets cleaned up every week. Need suggestions.
... (4 Replies)
Hi Guys,
I want to redirect the output of 3 scripts to a file and then mail the output of those three scripts.
I used below but it is not working:
OFILE=/home/home1/report1
echo "report1 details" > $OFILE
=/home/home1/1.sh > $OFILE
echo... (7 Replies)
Hello All,
I have a text file containing output from a command that contains lots of escape/control characters that when viewed using vi or view, looks like jibberish. But when viewed using the cat command the output is formatted properly.
Is there any way to take the output from the cat... (7 Replies)
Discussion started by: mrm5102
7 Replies
LEARN ABOUT SUSE
vlock-plugins
VLOCK-PLUGINS(5) Linux Programmer's Manual VLOCK-PLUGINS(5)NAME
vlock-plugins - plugin support for vlock
DESCRIPTION
If vlock-main(8) is compiled with plugin support its default features are very limited: it can only lock the current session and ask for
authenticiaton. However it is possible to extend this functions through plugins. These plugins are loaded when vlock-main starts and can
provide hooks that are called at certain points during the lifetime of the vlock-main process.
DEFAULT PLUGINS
The following plugins are provided when installing vlock with default options:
all
This plugin locks all sessions by disabling console switching. It is also loaded when giving the -a,--all option to vlock(1).
new
This plugin switches to a new virtual console before disabling console switching through the "all" plugin. It is also loaded when
giving the -n,--new option to vlock(1).
nosysrq
Linux only. This plugin disables the Linux SysRQ mechanism before the console switching is locked by the "all" plugin. It is also
loaded when giving the -s,--disable-sysrq option to vlock(1).
ADDITIONAL PLUGINS
The following plugins are only available if explicitely selected at build time:
caca
This plugin runs a random libcaca screensaver when the screen is locked.
WRITING PLUGINS
For information about writing plugins see the PLUGINS file in the vlock source distribution.
SEE ALSO vlock(1), vlock-main(8)AUTHORS
Frank Benkstein <frank-vlock@benkstein.net>
Linux 10 November 2007 VLOCK-PLUGINS(5)