01-10-2017
A couple of comments:
- The error is still trapped (detected and reported), the message just happen not to be displayed on the terminal.
- Should a shell syntax error had existed in your command line, it would still have been displayed on the terminal. Redirections are performed after the command is parsed, syntax errors are detected during the parsing.
This User Gave Thanks to jlliagre For This Post:
6 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
i need to get rid of lilo's splash screen.
i've heard that you can edit your /etc/lilo.conf and add this line:
<b>append="splash=0"</b>
anyway, i did that and i still have a splash screen. any idea why that didn't work, or what is another way to disable the splash screen?
okay,
-nydel (1 Reply)
Discussion started by: nydel
1 Replies
2. Programming
So basically what im trying to do is ...
Open file, read that file, than try to find ..
We or we and replace them with I, but not replace the cases where words contain We or we, such as Went, went, etc
a and replace them with the, but not replace the cases where words contain a, such as... (1 Reply)
Discussion started by: bconnor
1 Replies
3. Programming
Hey guys, first of all I'd like to say Hi to everyone. I am new here and this is my first post.
I have a question about some C stuff. I am in Computer Science and I have an assignment for a UNIX Applications course. It is really complicated, however.
We're using the C language for this and... (1 Reply)
Discussion started by: V4D3R
1 Replies
4. UNIX for Advanced & Expert Users
hi,
i need to clear data off a DOA backup drive.
i try this, but just get a file {} in . and no change on the backup drive.
bash shell
find /mnt/usbbackup -xdev -type f -exec echo `date` > {} \;
any ideas? thanks. :) (1 Reply)
Discussion started by: drewnichols
1 Replies
5. UNIX for Dummies Questions & Answers
Hi everyone
Just a couple of quick questions if I may.
Can I ask what is meant by "flavours"?? I've come across it many times in the forums and I'm guessing that it is a variery of either Linux or UNIX (I know nil about either) which has developed but not really got a clue.
... (1 Reply)
Discussion started by: Tiramisu
1 Replies
6. Shell Programming and Scripting
Example script:
find mydir -type f -exec echo {}>aaa \; -exec echo {}>bbb \;The two paths go the the bbb file, while there should be one of them on each file. How should I do it to get it working? (2 Replies)
Discussion started by: Tribe
2 Replies
LEARN ABOUT CENTOS
pmparseinterval
PMPARSEINTERVAL(3) Library Functions Manual PMPARSEINTERVAL(3)
NAME
pmParseInterval - convert interval string to timeval structure
C SYNOPSIS
#include <pcp/pmapi.h>
int pmParseInterval(const char *string, struct timeval *rslt, char **errmsg);
cc ... -lpcp
DESCRIPTION
pmParseInterval parses the argument string specifying an interval of time and fills in the tv_sec and tv_usec components of the rslt struc-
ture to represent that interval.
The input string is most commonly the argument following a -t command line option to a PCP application, and the syntax is fully described
in PCPIntro(1).
pmParseInterval returns 0 and errmsg is undefined if the parsing is successful.
If the given string does not conform to the required syntax pmParseInterval returns -1 and a dynamically allocated error message string in
errmsg. The error message is terminated with a newline and includes the text of the input string along with an indicator of the position
at which the error was detected, e.g.
4minutes 30mumble
^ -- unexpected value
In the case of an error, the caller is responsible for calling free(3C) to release the space allocated for errmsg.
SEE ALSO
PMAPI(3) and pmParseTimeWindow(3).
Performance Co-Pilot PCP PMPARSEINTERVAL(3)