Sponsored Content
Full Discussion: Send data to standard input
Top Forums Shell Programming and Scripting Send data to standard input Post 302391684 by nefeli on Tuesday 2nd of February 2010 07:35:47 AM
Old 02-02-2010
Bug Send data to standard input

Hello,

I'm writting a korn script that executes a daemon in a remote server. The problem is that daemon doesn't go background until it receives an enter from the standard input, and it maintains the rsh opened until it get it. I'm looking for the best (efficient and elegant) way to do send the enter key to do process. What are you suggests?
 

10 More Discussions You Might Find Interesting

1. 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

2. Shell Programming and Scripting

How to copy from standard input

I tried copy the output files from find command into a directory. Example, find / -name core 2>/dev/null | xargs cp???? I have known that we can use xargs to execute command lines from standard input but how to use it in this case. Or I can do something besides xargs. (2 Replies)
Discussion started by: lalelle
2 Replies

3. Shell Programming and Scripting

change standard input ?

Dear... I have a scrpit that contains multiple read command.... when I run the script I have to enter 3 variables so that I can get the output.. but, I dont want to put those 3 inputs manually every time... I want to make a shell that reads the 3 inputs from a file. the script name is... (4 Replies)
Discussion started by: yahyaaa
4 Replies

4. Solaris

standard input

Please give me any example for standard input in Solaris. (6 Replies)
Discussion started by: karman0931
6 Replies

5. Shell Programming and Scripting

Reading from standard input with awk

Hello, Could somebody please give me an awk example on how to read from the standard input. It means as the "read" function in Korn shell. Thx in advance ... (3 Replies)
Discussion started by: rany1
3 Replies

6. Shell Programming and Scripting

Reading Standard Input

Hello, I am new to scripting. How do I read multiple lines from the command line? I know read reads one line, but if I have to read multiple lines, how should I do? Thanks, Prasanna (4 Replies)
Discussion started by: prasanna1157
4 Replies

7. Shell Programming and Scripting

Reading from standard input

So, I am new to shell scripting and have a few problems. I know how to read from standard input but I do not know how to really compare it to say, a character. I am trying to compare it to a character and anything exceeding just a character, the user will get an output message, but the program... (7 Replies)
Discussion started by: Bungkai
7 Replies

8. Shell Programming and Scripting

standard input and cron

I have a program that requires the user to enter input values while it is being run for example in bash ... ... .. echo "Enter your input" read input echo $input ... ... ...I need to schedule this program with crontab, hence a problem, cronjobs run in the background, any ideas on how to... (10 Replies)
Discussion started by: walforum
10 Replies

9. Shell Programming and Scripting

Use the content of a file as standard input

I want to use a content of a file as standard input to a program and dump the output to a file. However, when I try the following code: ./program < input.in > output.out The output.out is empty. So, how can I handle this problem? Thanks in advance! (11 Replies)
Discussion started by: Ray Sun
11 Replies

10. 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
talkd(8)						      System Manager's Manual							  talkd(8)

NAME
talkd, ntalkd - The remote communications server for the talk command SYNOPSIS
talkd ntalkd DESCRIPTION
The talkd server notifies a user or callee when a client or caller wants to initiate a conversation. The talkd daemon sets up the conver- sation if the callee accepts the invitation. The caller initiates a conversation by executing the talk command and specifying the callee. The callee accepts the invitation by executing the talk command specifying the caller. The talkd daemon listens at a socket for a LOOK_UP request from a local or remote talk client. On receiving a LOOK_UP request, talkd scans its internal invitation table for an entry that pairs the client (the local or remote talk process) with a caller. If an entry exists in the talkd daemon's international invitation table, the talkd daemon assumes that the client process is the callee. The talkd daemon returns the appropriate rendezvous address to the talk process for the callee. The callee process then establishes a stream connection with the caller process. If an entry does not exist in the invitation table, the talkd daemon assumes that the client process is the caller. The talkd daemon then receives the client process's ANNOUNCE request. When talkd receives the ANNOUNCE request, talkd broadcasts an invitation on the console of the remote host where the callee is logged in, unless the caller specifies a particular tty. At approximately 1-minute intervals, talkd rebroadcasts the invitation until either the invitation is answered by the callee or the call is canceled by the caller. Debugging messages are sent to syslogd(8). For further information on the files used by this daemon, see the syslogd command. FILES
Specifies the command path Defines Internet socket assignments Contains data about users who are currently logged in NOTES
The Tru64 UNIX version of talkd uses the talk 4.3BSD protocol. This command is sometimes referred to as ntalkd. It is not compatible with 4.2BSD versions of talk. RELATED INFORMATION
Commands: inetd(8), syslogd(8), talk(1) delim off talkd(8)
All times are GMT -4. The time now is 03:10 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy