10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi there,
I need to execute a command in the bash. The program prints some standard (output and) error and then wants the user to choose one of several options and type the according input. I am trying to solve this issue in a bash script but also running into some circular dependency. How can I... (7 Replies)
Discussion started by: fredestet
7 Replies
2. Shell Programming and Scripting
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)
Discussion started by: H.Faria
5 Replies
3. Red Hat
EDIT: Nevermind, figured it out! Forgot to put backslashes in my perl script to not process literals!
Hi everyone. I am trying to have this command pass silently. (no output)
chsh -s /bin/sh news
Currently it outputs.
I've tried....
&> /dev/null
1> /dev/null
2>&1 /dev/null
1>&2... (1 Reply)
Discussion started by: austinharris43
1 Replies
4. Shell Programming and Scripting
in my perl script
i tried the below statement
$result = `cleartool rmstream -f $s1 1> /dev/null`;
so as to redirect then error messages,when i print the $result
,it seems to be Null. (4 Replies)
Discussion started by: ram_unx
4 Replies
5. UNIX for Dummies Questions & Answers
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)
Discussion started by: mbak
5 Replies
6. Shell Programming and Scripting
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)
Discussion started by: sushantnirwan
8 Replies
7. Shell Programming and Scripting
Hello all
im trying to use top program in my csh shell
like this :
set topResult = `top | grep server.exe`
but im facing 2 problems
1.when the top program dont installed in the machine im getting error
so can i check in csh if application im using exist
2 the top program gives... (2 Replies)
Discussion started by: umen
2 Replies
8. Shell Programming and Scripting
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)
Discussion started by: umen
0 Replies
9. Shell Programming and Scripting
Working in a bash environment, in the following example, how do I direct the error message that putting in an invalid flag (-j for example) would normally produce to dev/null?
while getopts "abcd" opt
do
case "$opt" in
i) a etc ;;
r) b etc ;;
f) c etc ;;
v) d... (7 Replies)
Discussion started by: Sniper Pixie
7 Replies
10. Shell Programming and Scripting
How can I redirect and append stdout and stderr to a file when using cron? Here is my crontab file:
*/5 * * * * /dir/php /dir/process_fns.php >>& /dir/dump.txt
Cron gives me an 'unexpected character found in line' when trying to add my crontab file.
Regards,
Zach Curtis
POPULUS (8 Replies)
Discussion started by: zcurtis
8 Replies