Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Go Back   Code Forums > Systems > Linux / BSD / OS X
User Name
Password

Reply
 
LinkBack Thread Tools Display Modes
Old 11-08-2004, 09:08 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,398
sde is on a distinguished road
Suppressing errors with the cp command

i need to supress errors on a copy command for a bash script.

i saw documentation somewhere that called for this syntax:
Code:
$ cp -E ignore sourcefile /path/to/destination
that doesn't work on the redhat 9 server i'm working on. i did a man cp, and did not find anything.

are there any other known ways to supress errors?
__________________
testing 1 2 3
sde is online now   Reply With Quote
Old 11-08-2004, 09:55 AM   #2 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
at the end of your command add "2> /dev/null" to get rid of errors.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 11-08-2004, 10:15 AM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,398
sde is on a distinguished road
thanks matt .. the output looks much cleaner now.
__________________
testing 1 2 3
sde is online now   Reply With Quote
Reply


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

vB 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
Input from command line Kportertx Java 7 07-15-2003 06:34 AM
force delete from command line sde Windows 4 04-24-2003 12:14 PM
pygtk errors schotty Python 4 02-20-2003 10:06 PM
Understanding Cron bdl Linux 0 02-16-2003 01:58 PM
errors, .. hard drive related? sde Linux / BSD / OS X 1 07-31-2002 08:29 PM


All times are GMT -8. The time now is 11:42 AM.


Powered by vBulletin Version 3.6.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2006, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
Open Circle