Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Standard error output to Pipe input - solved Post 302396796 by poova on Friday 19th of February 2010 10:08:05 AM
Old 02-19-2010
Standard error output to Pipe input - solved

Hi,
I want to check a particular word is in standard error output or not. Can I acheive it in single command?

For example,
Delete file_name 2>error.log

cat error.log

Output:
XXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXX
Successfully deleted
XXXXXXXXXXXXXXXXX

where delete is some external program.

I want to do Delete <file name> and grep the word "Success" in the same command.

Thanks & Regards,
Poova.

---------- Post updated at 08:38 PM ---------- Previous update was at 08:35 PM ----------

Delete <file_name> 2>error.log | grep "success" error.log

Will the above command work with out any problem.

Thanks & Regards,
Poova.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Error: Internal system error: Unable to initialize standard output file

Hey guys, need some help. Running AIX Version 5.2 and one of our cron jobs is writing errors to a log file. Any ideas on the following error message. Error: Internal system error: Unable to initialize standard output file I'm guessing more info might be needed, so let me know. Thanks (2 Replies)
Discussion started by: firkus
2 Replies

2. Shell Programming and Scripting

standard input

how can i redirect standard input? i dont remember :/, though could you redirec not from a command? i mean, to redirect always stdin and stout (1 Reply)
Discussion started by: Jariya
1 Replies

3. Shell Programming and Scripting

redirect only the standard error output to mail

I'm writing a script using file descriptor 2 (std error) to send an email only if the command fails or errors out but the script always emails me irrepective of whether it fails or not. It will not email the /tmp/check.error file output if doesn't error out just the mail with the subject "Cannot... (3 Replies)
Discussion started by: barkath
3 Replies

4. Shell Programming and Scripting

Command Output to Standard Input

Hi All, How do I provide the output of a command to another command which is waiting for an input from the user ? Ex : I need to login to a device via telnet. In the script, initially I use the "read" command to get the IP Address, Username and Password of the device from the user. Now,... (1 Reply)
Discussion started by: sushant172
1 Replies

5. Shell Programming and Scripting

Redirect standard error to input of other process, 2| ?

Hello, I would like to know if there is a shell in which operations such as 2| (redirect standard error of one process to the standard input of another one) exist? I know it is possible to do it in bash with things like: (process 2>&1) | other_process but I find it a bit intricate when... (3 Replies)
Discussion started by: chlorine
3 Replies

6. UNIX for Dummies Questions & Answers

Redirect Standard output and standard error into spreadsheet

Hey, I'm completely new at this and I was wondering if there is a way that I would be able to redirect the log files in a directories standard output and standard error into and excel spreadsheet in anyway? Please remember don't use too advanced of terminology as I just started using shell... (6 Replies)
Discussion started by: killaram
6 Replies

7. Red Hat

Command understanding the output file destination in case of standard output!!!!!

I ran the following command. cat abc.c > abc.c I got message the following message from command cat: cat: abc.c : input file is same as the output file How the command came to know of the destination file name as the command is sending output to standard file. (3 Replies)
Discussion started by: ravisingh
3 Replies

8. Shell Programming and Scripting

[Solved] Multiple input files and output files

Hi, I have many test*.ft1 files to which I want to read as input for a script called pipe2txt.tcl and print the output in each separate file. For example, pipe2txt.tcl < test001.ft1 > test001.txt How can I read many files in this maner? thank you very much, Best, Pahuja (5 Replies)
Discussion started by: Pahuja
5 Replies

9. Homework & Coursework Questions

Removing punctuations from file input or standard input

Just started learning Unix and received my first assignment recently. We haven't learned many commands and honestly, I'm stumped. I'd like to receive assistance/guidance/hints. 1. The problem statement, all variables and given/known data: How do I write a shell script that takes in a file or... (4 Replies)
Discussion started by: fozilla
4 Replies

10. Red Hat

Input/output error

Hi issue with red hat and san. I had a LUN shared to me from an oracle storage I am able to see it and the size. ~]# multipath -ll mpathe (3600144f0e984617b00005b466bd70014) dm-3 SUN,ZFS Storage 7430 size=10T features='0' hwhandler='0' wp=rw |-+- policy='round-robin 0' prio=1... (0 Replies)
Discussion started by: goya
0 Replies
DateTime::Locale::lo(3) 				User Contributed Perl Documentation				   DateTime::Locale::lo(3)

NAME
DateTime::Locale::lo SYNOPSIS
use DateTime; my $dt = DateTime->now( locale => 'lo' ); print $dt->month_name(); DESCRIPTION
This is the DateTime locale package for Lao. DATA
This locale inherits from the DateTime::Locale::root locale. It contains the following data. Days Wide (format) XXXXXX XXXXXXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXX XXXXXXXX Abbreviated (format) X. X. X. XX. XX. X. XX. Narrow (format) 2 3 4 5 6 7 1 Wide (stand-alone) XXXXXX XXXXXXXXX XXXXXX XXXXXXXX XXXXXX XXXXXXX XXXXXXXX Abbreviated (stand-alone) X. X. X. XX. XX. X. XX. Narrow (stand-alone) 2 3 4 5 6 7 1 Months Wide (format) XXXXXX XXXXX XXXX XXXX XXXXXXX XXXXXX XXXXXXX XXXXX XXXXX XXXX XXXXX XXXXX Abbreviated (format) X.X. X.X. XX.X. X.X.. X.X. XX.X. X.X. X.X. X.X. X.X. X.X. X.X. Narrow (format) 1 2 3 4 5 6 7 8 9 10 11 12 Wide (stand-alone) XXXXXX XXXXX XXXX XXXX XXXXXXX XXXXXX XXXXXXX XXXXX XXXXX XXXX XXXXX XXXXX Abbreviated (stand-alone) X.X. X.X. XX.X. X.X.. X.X. XX.X. X.X. X.X. X.X. X.X. X.X. X.X. Narrow (stand-alone) 1 2 3 4 5 6 7 8 9 10 11 12 Quarters Wide (format) Q1 Q2 Q3 Q4 Abbreviated (format) Q1 Q2 Q3 Q4 Narrow (format) 1 2 3 4 Wide (stand-alone) Q1 Q2 Q3 Q4 Abbreviated (stand-alone) Q1 Q2 Q3 Q4 Narrow (stand-alone) 1 2 3 4 Eras Wide BCE CE Abbreviated XXXXXXXXXXXXXXXXX X.X. Narrow XXXXXXXXXXXXXXXXX X.X. Date Formats Full 2008-02-05T18:30:30 = XXXXXXXXXXX 5 XXXXX X.X. 2008 1995-12-22T09:05:02 = XXXXXXXX 22 XXXXX X.X. 1995 -0010-09-15T04:44:23 = XXXXXXXXX 15 XXXXX XXXXXXXXXXXXXXXXX -10 Long 2008-02-05T18:30:30 = 5 XXXXX 2008 1995-12-22T09:05:02 = 22 XXXXX 1995 -0010-09-15T04:44:23 = 15 XXXXX -10 Medium 2008-02-05T18:30:30 = 5 X.X. 2008 1995-12-22T09:05:02 = 22 X.X. 1995 -0010-09-15T04:44:23 = 15 X.X. -10 Short 2008-02-05T18:30:30 = 5/2/2008 1995-12-22T09:05:02 = 22/12/1995 -0010-09-15T04:44:23 = 15/9/-010 Default 2008-02-05T18:30:30 = 5 X.X. 2008 1995-12-22T09:05:02 = 22 X.X. 1995 -0010-09-15T04:44:23 = 15 X.X. -10 Time Formats Full 2008-02-05T18:30:30 = 18XXX 30XXXX 30 XXXXXXUTC 1995-12-22T09:05:02 = 9XXX 5XXXX 02 XXXXXXUTC -0010-09-15T04:44:23 = 4XXX 44XXXX 23 XXXXXXUTC Long 2008-02-05T18:30:30 = 18 XXX 30XXXX30 UTC 1995-12-22T09:05:02 = 9 XXX 5XXXX02 UTC -0010-09-15T04:44:23 = 4 XXX 44XXXX23 UTC Medium 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 Short 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 Default 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 Datetime Formats Full 2008-02-05T18:30:30 = XXXXXXXXXXX 5 XXXXX X.X. 2008, 18XXX 30XXXX 30 XXXXXXUTC 1995-12-22T09:05:02 = XXXXXXXX 22 XXXXX X.X. 1995, 9XXX 5XXXX 02 XXXXXXUTC -0010-09-15T04:44:23 = XXXXXXXXX 15 XXXXX XXXXXXXXXXXXXXXXX -10, 4XXX 44XXXX 23 XXXXXXUTC Long 2008-02-05T18:30:30 = 5 XXXXX 2008, 18 XXX 30XXXX30 UTC 1995-12-22T09:05:02 = 22 XXXXX 1995, 9 XXX 5XXXX02 UTC -0010-09-15T04:44:23 = 15 XXXXX -10, 4 XXX 44XXXX23 UTC Medium 2008-02-05T18:30:30 = 5 X.X. 2008, 18:30:30 1995-12-22T09:05:02 = 22 X.X. 1995, 9:05:02 -0010-09-15T04:44:23 = 15 X.X. -10, 4:44:23 Short 2008-02-05T18:30:30 = 5/2/2008, 18:30 1995-12-22T09:05:02 = 22/12/1995, 9:05 -0010-09-15T04:44:23 = 15/9/-010, 4:44 Default 2008-02-05T18:30:30 = 5 X.X. 2008, 18:30:30 1995-12-22T09:05:02 = 22 X.X. 1995, 9:05:02 -0010-09-15T04:44:23 = 15 X.X. -10, 4:44:23 Available Formats d (d) 2008-02-05T18:30:30 = 5 1995-12-22T09:05:02 = 22 -0010-09-15T04:44:23 = 15 EEEd (d EEE) 2008-02-05T18:30:30 = 5 X. 1995-12-22T09:05:02 = 22 XX. -0010-09-15T04:44:23 = 15 X. Hm (H:mm) 2008-02-05T18:30:30 = 18:30 1995-12-22T09:05:02 = 9:05 -0010-09-15T04:44:23 = 4:44 hm (h:mm a) 2008-02-05T18:30:30 = 6:30 XXXXXXXX 1995-12-22T09:05:02 = 9:05 XXXXXXXX -0010-09-15T04:44:23 = 4:44 XXXXXXXX Hms (H:mm:ss) 2008-02-05T18:30:30 = 18:30:30 1995-12-22T09:05:02 = 9:05:02 -0010-09-15T04:44:23 = 4:44:23 hms (h:mm:ss a) 2008-02-05T18:30:30 = 6:30:30 XXXXXXXX 1995-12-22T09:05:02 = 9:05:02 XXXXXXXX -0010-09-15T04:44:23 = 4:44:23 XXXXXXXX M (L) 2008-02-05T18:30:30 = 2 1995-12-22T09:05:02 = 12 -0010-09-15T04:44:23 = 9 Md (d/M) 2008-02-05T18:30:30 = 5/2 1995-12-22T09:05:02 = 22/12 -0010-09-15T04:44:23 = 15/9 MEd (E, M-d) 2008-02-05T18:30:30 = X., 2-5 1995-12-22T09:05:02 = XX., 12-22 -0010-09-15T04:44:23 = X., 9-15 MMM (LLL) 2008-02-05T18:30:30 = X.X. 1995-12-22T09:05:02 = X.X. -0010-09-15T04:44:23 = X.X. MMMd (MMM d) 2008-02-05T18:30:30 = X.X. 5 1995-12-22T09:05:02 = X.X. 22 -0010-09-15T04:44:23 = X.X. 15 MMMEd (E MMM d) 2008-02-05T18:30:30 = X. X.X. 5 1995-12-22T09:05:02 = XX. X.X. 22 -0010-09-15T04:44:23 = X. X.X. 15 MMMMd (d MMMM) 2008-02-05T18:30:30 = 5 XXXXX 1995-12-22T09:05:02 = 22 XXXXX -0010-09-15T04:44:23 = 15 XXXXX MMMMEd (E MMMM d) 2008-02-05T18:30:30 = X. XXXXX 5 1995-12-22T09:05:02 = XX. XXXXX 22 -0010-09-15T04:44:23 = X. XXXXX 15 mmss (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 ms (mm:ss) 2008-02-05T18:30:30 = 30:30 1995-12-22T09:05:02 = 05:02 -0010-09-15T04:44:23 = 44:23 y (y) 2008-02-05T18:30:30 = 2008 1995-12-22T09:05:02 = 1995 -0010-09-15T04:44:23 = -10 yM (y-M) 2008-02-05T18:30:30 = 2008-2 1995-12-22T09:05:02 = 1995-12 -0010-09-15T04:44:23 = -10-9 yMEd (EEE, y-M-d) 2008-02-05T18:30:30 = X., 2008-2-5 1995-12-22T09:05:02 = XX., 1995-12-22 -0010-09-15T04:44:23 = X., -10-9-15 yMMM (y MMM) 2008-02-05T18:30:30 = 2008 X.X. 1995-12-22T09:05:02 = 1995 X.X. -0010-09-15T04:44:23 = -10 X.X. yMMMEd (EEE, y MMM d) 2008-02-05T18:30:30 = X., 2008 X.X. 5 1995-12-22T09:05:02 = XX., 1995 X.X. 22 -0010-09-15T04:44:23 = X., -10 X.X. 15 yMMMM (y MMMM) 2008-02-05T18:30:30 = 2008 XXXXX 1995-12-22T09:05:02 = 1995 XXXXX -0010-09-15T04:44:23 = -10 XXXXX yQ (y Q) 2008-02-05T18:30:30 = 2008 1 1995-12-22T09:05:02 = 1995 4 -0010-09-15T04:44:23 = -10 3 yQQQ (y QQQ) 2008-02-05T18:30:30 = 2008 Q1 1995-12-22T09:05:02 = 1995 Q4 -0010-09-15T04:44:23 = -10 Q3 yyQ (Q yy) 2008-02-05T18:30:30 = 1 08 1995-12-22T09:05:02 = 4 95 -0010-09-15T04:44:23 = 3 -10 yyyyM (M/yyyy) 2008-02-05T18:30:30 = 2/2008 1995-12-22T09:05:02 = 12/1995 -0010-09-15T04:44:23 = 9/-010 yyyyMMMM (MMMM y) 2008-02-05T18:30:30 = XXXXX 2008 1995-12-22T09:05:02 = XXXXX 1995 -0010-09-15T04:44:23 = XXXXX -10 Miscellaneous Prefers 24 hour time? Yes Local first day of the week XXXXXX SUPPORT
See DateTime::Locale. AUTHOR
Dave Rolsky <autarch@urth.org> COPYRIGHT
Copyright (c) 2008 David Rolsky. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. This module was generated from data provided by the CLDR project, see the LICENSE.cldr in this distribution for details on the CLDR data's license. perl v5.18.2 2017-10-06 DateTime::Locale::lo(3)
All times are GMT -4. The time now is 07:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy