nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Script disabling error or warning message output

This is a discussion on Script disabling error or warning message output within the Shell scripting forums, part of the Development/Scripting category; Hello, I have small problem I run MS-Word using Wine software and whenever I run script it starts ms-word but ...


Go Back   nixCraft Linux Forum > Development/Scripting > Shell scripting

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 04-18-2006, 04:42 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default Script disabling error or warning message output

Hello,

I have small problem I run MS-Word using Wine software and whenever I run script it starts ms-word but it keep dumping too much information on my console (xterm) screen. How do I disable the of script output?

My script:
Code:
#!/bin/sh
wine /home/payal/.wine/c-drive/Program\ Files/Microsoft\ Office/Office10/WINWORD.EXE &
__________________
Friends - v-nessa - missyAdmin - LinuxChix
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-18-2006, 08:38 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Rep Power: 4
tom is on a distinguished road
Default

Append >/dev/null 2>&1 to your script i.e.

Code:
wine /home/payal/.wine/c-drive/Program\ Files/Microsoft\ Office/Office10/WINWORD.EXE >/dev/null 2>&1 &
Reply With Quote
  #3 (permalink)  
Old 04-18-2006, 09:24 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
My distro: Suse, RHEL, Vista
Posts: 154
Rep Power: 4
sweta will become famous soon enough
Default

thanks tom
__________________
Friends - v-nessa - missyAdmin - LinuxChix
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
WARNING: add_spec: No major number for SUNW,socal vasanth Solaris/OpenSolaris 0 07-26-2006 06:25 PM
Fix sprintf warning Rick Coding in General 4 07-03-2006 01:00 AM
WARNING: General Protection Faults in these executables-sed Usagi Linux software 7 06-23-2006 01:15 PM
gtk warning cannot open display gnome Linux software 1 03-14-2006 01:50 PM
error shell script no such file or directory /bin/sh Linux software 1 01-08-2006 09:34 PM


All times are GMT +5.5. The time now is 08:48 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36