Sponsored Content
Top Forums UNIX for Advanced & Expert Users Redirection? (I do find some of the strangest things.) Post 302989229 by jlliagre on Tuesday 10th of January 2017 06:58:25 AM
Old 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 get the strangest feeling that lilo hates me.

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

Complicating things?

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

Question about several things in C

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

shell redirection in find

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

Just trying to find out a few things ....

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

Several exec on find send all the output to the last redirection

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
write(1)						      General Commands Manual							  write(1)

NAME
write - interactively write (talk) to another user SYNOPSIS
DESCRIPTION
The command copies lines from your terminal to that of another user. When first called, it sends the message: to the receiving user's terminal. When it has successfully completed the connection, it also sends two bells to your own terminal to indi- cate that what you are typing is being sent. To set up two-way communication, the recipient of the message (user) must execute the command: (yourterminal is only required if the originator is logged in more than once.) Communication continues until an end of file is read from the terminal, an interrupt is sent, or the recipient executes At that point, writes on the other terminal and exits. To write to a user who is logged in more than once, use the terminal argument to indicate which line or terminal to send to (e.g., Other- wise, the first writable instance of the user found in database is assumed and the following message is displayed: terminal ... Permission to write may be denied or granted with the command (see mesg(1)). Writing to others is normally allowed by default. Certain commands, in particular and disallow messages in order to prevent interference with their output. However, if the user has the appropriate privileges, messages can be forced onto a write-inhibited terminal. If the character is found at the beginning of a line, calls the POSIX shell (see sh-posix(1)) to execute the rest of the line as a command. The following protocol is suggested for using When you first to another user, wait for the user to back before starting to send. Each per- son should end a message with a distinctive signal (such as "" for "over") so that the other person knows when to reply. Similarly, the signal "" (for "over and out") can be used to indicate the end of the conversation. EXTERNAL INFLUENCES
Environment Variables determines the locale to use for the locale categories when both and the corresponding environment variable (beginning with do not specify a locale. If is not set or is set to the empty string, a default of "C" (see lang(5)) is used. determines the format and contents of date and time strings. determines the language in which messages are displayed. If any internationalization variable contains an invalid setting, behaves as if all internationalization variables are set to "C". See environ(5). International Code Set Support Single- and multi-byte character code sets are supported. DIAGNOSTICS
The user you are trying to write to is not logged on. Your correspondent has denied write permission after your session started. Your session is ended. Your correspondent sent end-of-file, or you set your terminal to and your correspondent tried to write to you. If you have a session established, you can continue to write to your correspondent. The user you are trying to write to has denied write permission (with Your terminal is set to and the recipient cannot respond to you. EXAMPLES
By issuing the command: user sends a message to user screen. If responds: two-way communication between and is established. FILES
To find user To execute shell commands SEE ALSO
elm(1), mail(1), mailx(1), mesg(1), nroff(1), pr(1), sh-posix(1), sh(1), who(1), utmpd(1M), getutsent(3C). STANDARDS CONFORMANCE
write(1)
All times are GMT -4. The time now is 06:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy