Run a script in silent mode


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Run a script in silent mode
# 1  
Old 08-12-2010
Run a script in silent mode

Hi All,
I have a script which calls some other scripts.. When i run the parent script all the status messages are displaying on terminal.
I want to know how to suppress dem...

or run a script in silent mode

Thanks,
Firestar
# 2  
Old 08-12-2010
This would send all output to /dev/null
Code:
./myscript 1>/dev/null 2>&1

# 3  
Old 08-12-2010
@Ikon

thank you for the reply

Could you please explain what this will do ??
# 4  
Old 08-12-2010
1>/dev/null sends standard output to garbage

2>&1 sends error output to same at 1.
# 5  
Old 08-12-2010
@Ikon,

I am sorry , i didnt gave s complete desc of what exactly i want. here it iss

but i have some status messages in the parent script which i want capture in a file ....

all the outputs from child shells must be garbagedd
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. HP-UX

how to run glance over ssh in batch mode

Hello; Is it possible to run glance over ssh in batch mode ?? Similar to running " top -f " command over ssh.. Need to get glance output for specific pids Thnx very much (5 Replies)
Discussion started by: delphys
5 Replies

2. Shell Programming and Scripting

how to run in background mode.

Hi All, i'm a newbie here, i'm just wondering in how do i run my script in background then echo it if it's done. Please advise, Thanks, -nik (1 Reply)
Discussion started by: nikki1200
1 Replies

3. Solaris

Single maintence mode cannot run any command on M4000

Hii All I was building two M4000 servers and one was successfully installed. Other one /usr has been unmounted. my putty session got disconnected and i connected to console where it asked for root single maintence # # init 0 not foung # df -h not found # xscf>poweroff -a xscf>... (8 Replies)
Discussion started by: seems
8 Replies

4. Linux

How to run User-mode Linux installed with synaptic package manager in Ubuntu 10.10

I have installed user-mode linux kernel in Ubuntu 10.10 with the help of Synaptic package manager. But I'm not getting how to run it. If we install it manually, we've to run it using the executable binary file. But here, I'm unable to locate any such file. Please help.... Thanking You.... ... (0 Replies)
Discussion started by: rohitadeshmukh1
0 Replies

5. Shell Programming and Scripting

Run from waiting mode

I have no idea why this job has been put into waiting state by server. Can anyone help me to run this job from waiting state. ps -elf | grep 'usr_script' 4 S usr_script 3929 3926 0 77 0 - 2976 wait Oct21 ? 00:00:00 /bin/ksh /application_folder/script/report 0 S usr_script ... (2 Replies)
Discussion started by: zooby
2 Replies

6. Shell Programming and Scripting

How to run VI in batch mode

Hi how do I use vi to do change some strings in a shell script loop 1. Run ls first, for each file that contains the word salesreport*.txt, do the following 2. use vi to run the following ex command : "1,$s/1975/1945/ig, wq" Please tell me how to do this in vi, not sed. Thank you. (5 Replies)
Discussion started by: grossgermany
5 Replies

7. Shell Programming and Scripting

Script is not exiting from run mode.

Hi Folks. My script is not exiting after run though its working correctly please suggest. #!/bin/ksh trap '' HUP . /bin/functions config_env PATH=/bin:/usr/bin:/usr/local/bin:$EXEC_PATH:$ORACLE_HOME/bin MONTH=$(control_register month) YEAR=$(control_register year) DATE_NOW="Job... (1 Reply)
Discussion started by: Haque123
1 Replies

8. Linux

Wine in silent mode

I want to run through wine the utorrent and I don't want the messages that are usually displayed in the console, so I use the following command wine utorrent.exe > /dev/null & but it doesn't seem to work. Especially the redirection of the messages to the /dev/null doesn't work at all. Do... (1 Reply)
Discussion started by: myle
1 Replies

9. UNIX for Dummies Questions & Answers

How to run shell script in silent mode

Hi, I have a AIX shell script that normally runs in an interactive mode. Now there is a need to it in silent mode and take all default answers. How do I do that? Thanks. (3 Replies)
Discussion started by: x057373
3 Replies

10. Shell Programming and Scripting

run in debug mode

Hi, I have a question on my korn shell script. When I run without debugging turned on, I can't get the correct result. If I turn on the debug mode, like sh -x myprogram, it will give me the correct result. Can someone tell me what is going on here? Thanks, :rolleyes: (6 Replies)
Discussion started by: whatisthis
6 Replies
Login or Register to Ask a Question