nixCraft Linux Forum

nixCraft

Linux / UNIX 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

Linux answers from nixCraft.


Shell scripting You can discuss the shell scripting, request shell scripts and scripting techniques

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18-04-2006, 03:42 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
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 &
__________________
Reply With Quote
  #2 (permalink)  
Old 18-04-2006, 07:38 PM
tom tom is offline
Contributors
User
 
Join Date: Jun 2005
Location: London, UK
Posts: 213
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 5
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 18-04-2006, 08:24 PM
sweta's Avatar
Contributors
User
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 199
Thanks: 12
Thanked 9 Times in 9 Posts
Rep Power: 7
sweta has a spectacular aura about sweta has a spectacular aura about
Default

thanks tom
__________________
Reply With Quote
Reply


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 Off


Similar Threads

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


All times are GMT +5.5. The time now is 06:36 AM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

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 37 38