Hello all
im using tcsh shell on sun Solaris , using the Make utility for compilation
i will like to be able to redirect the stderr to file , how can it be done ? (0 Replies)
Hi friends
I am facing one problem while redirecting the out of the stderr and stdout to a file
let example my problem with a simple example
I have a file (say test.sh)in which i run 2 command in the background
ps -ef &
ls &
and now i am run this file and redirect the output to a file... (8 Replies)
I'm using below command to redirect stderr to a file but I also want to add timestamp to stderr.out to find out the date / time the error occurred.
ls -ltr 2>>/tmp/stderr.out
Thanks (5 Replies)
Hi
I am not if this is possible: is it possible in bach (or another shell) to redirect GLOBALLY the stdout/stderr channels to a file.
So, if I have a script
script.sh
cmd1
cmd2
cmd3
I want all stdout/stderr goes to a file. I know I can do:
./script.sh 1>file 2>&1
OR
... (2 Replies)
I am trying to use one global declaration --> "exec 2>$ERR" to capture all stderr outputs that may occur anywhere in my script.
Then close it at the end of the script using --> "exec 2<&-"
I am using KSH on Solaris 8.
KSH Version M-11/16/88i
If I comment two "exec .." statements in the... (11 Replies)
Hello
I read a lot of post related to this topic, but nothing helped me. :mad:
I'm running a ksh script with subshell what processing some ldap command. I need to check output for possible errors.
#!/bin/ksh
...
readinput < $QCHAT_INPUT |&
while read -p line
do
echo $line
... (3 Replies)
Hello everyone,
I'm a nooby in Linux, and I need some help.
I have a shell script like this:
echo "Start of script" > ../My_Log_Dir/Script_Name.log
..
cp ../My_DataIn/File.txt ../My_DataOut/ 2>> ../My_Log_Dir/Script_Name.log
rc=$?
..
echo "End of Script" >>... (5 Replies)
Dear all,
redirecting STDOUT & STDERR to file is quite simple, I'm currently using:
exec 1>>/tmp/tmp.log; exec 2>>/tmp/tmp.logBut during script execution I would like the output come back again to screen, how to do that?
Thanks
Lucas (4 Replies)
$ a=$(<missing)
-bash: missing: No such file or directory
$ a=$(<missing) 2> /dev/null
-bash: missing: No such file or directory
$ a=$(<missing 2> /dev/null)
-bash: missing: No such file or directory
$ a=$( { <missing 2> /dev/null; } )
-bash: missing: No such file or directory
$... (10 Replies)
Dear all,
redirecting STDOUT & STDERR to file is quite simple, I'm currently using:
Code:
exec 1>>/tmp/tmp.log; exec 2>>/tmp/tmp.log
But during script execution I would like the output come back again to screen, how to do that?
Thanks
Luc
edit by bakunin: please use CODE-tags like the... (6 Replies)
Discussion started by: tmonk1
6 Replies
LEARN ABOUT HPUX
cmstartres
cmstartres(1m)cmstartres(1m)NAME
cmstartres - starts resource monitoring on the local node for an EMS resource that is configured in a Serviceguard package.
SYNOPSIS
cmstartres [-v] [-u] -p package_name resource_name
DESCRIPTION
cmstartres starts resource monitoring for an EMS resource on the local node. This resource must be configured in the specified pack-
age_name.
To start a resource monitoring for an EMS resource in the package, a user must either be superuser(UID=0), or have an access policy of
FULL_ADMIN allowed in the cluster configuration file. See access policy in cmquerycl(1m) or cmmakepkg(1m).
Options
cmstartres supports the following options.
-v Verbose output will be displayed.
-u Wait for the EMS resource to be available before starting resource monitoring.
-p package_name
The name of the package where the EMS resource is configured in. This is a required parameter.
resource_name
Name of the EMS resource to start resource monitoring for. This resource must be configured in the specified pack-
age_name. This is a required parameter.
RETURN VALUE
cmstartres returns the following values:
0 Successful completion.
1 Command failed.
EXAMPLES
To start resource monitoring for the EMS resource /net/interfaces/lan/status/lan0 for package pkgA, do the following:
cmstartres -u -p pkgA /net/interfaces/lan/status/lan0
AUTHOR
cmstartres was developed by HP.
SEE ALSO cmstopres(1m), cmquerycl(1m), cmmakepkg(1m).
Requires Optional Serviceguard Software cmstartres(1m)