Sponsored Content
Full Discussion: Issue with writing a pipe
Top Forums Shell Programming and Scripting Issue with writing a pipe Post 303045174 by MadeInGermany on Friday 13th of March 2020 02:44:57 AM
Old 03-13-2020
Use an echo_ function
and set ECHO=echo_!
This User Gave Thanks to MadeInGermany For This Post:
 

10 More Discussions You Might Find Interesting

1. Programming

pipe help

i made a lot of processes. here is the code: main() { printf("\nEnter K="); scanf("%d",&k); printf("Enter L="); scanf("%d",&l); printf("\nFather id=%d\n",getpid()); x=0; makechild(); sleep(2); return 1; } int makechild() { for(q=1;q<=k;q++) { if(f=fork()) { ... (5 Replies)
Discussion started by: bb666
5 Replies

2. Shell Programming and Scripting

Unix Arithmatic operation issue , datatype issue

Hi, I have a shell scripting. This will take 7 digit number in each line and add 7 digit number with next subsequent lines ( normal addition ). Eg: 0000001 0000220 0001235 0000022 0000023 ........... ......... ........ Like this i am having around 1500000 records. After adding... (23 Replies)
Discussion started by: thambi
23 Replies

3. Programming

writing a pipe with a c telnet

Hi I have a problem writing a c program that makes a telnet connection and writes some command. The shell command is something like this: ------------------------------------------------------------------ > >telnet 141.111.231.132 3300 ENTER COMMAND: login "<--- I' wirte a command (ex... (5 Replies)
Discussion started by: fafo77
5 Replies

4. Shell Programming and Scripting

How can I use pipe

Hi, guys: I am working on my shell using c. How can I use pipe to implement the following? ls -l 1>> | grep hellp 1<< 2>> | less 2<< (the output of ls goes to grep, and the output of grep goes to less) Thanks Please use and tags when posting code, data or logs etc. to preserve... (1 Reply)
Discussion started by: tomlee
1 Replies

5. Shell Programming and Scripting

Replace pipe with Broken Pipe

Hi All , Is there any way to replace the pipe ( | ) with the broken pipe (0xA6) in unix (1 Reply)
Discussion started by: saj
1 Replies

6. UNIX for Dummies Questions & Answers

grep pipe filename print issue

uname -a SunOS mypc 5.10 Generic_141414-07 sun4v sparc SUNW,SPARC-Enterprise-T2000 uname -a SunOS mypc 5.10 Generic_144488-07 sun4v sparc SUNW,SPARC-Enterprise-T5220 find . -name "*.cer" -exec keytool -v -list -printcert -file {} \; | grep -i "Aug 03" Valid from: Mon Jan 29 00:00:00 GMT... (16 Replies)
Discussion started by: shifahim
16 Replies

7. Shell Programming and Scripting

Need assistance with a file issue and a terminal issue

Hello everyone, I'm in need of some assistance. I'm currently enrolled in an introductory UNIX shell programming course and, well halfway through the semester, we are receiving our first actual assignment. I've somewhat realized now that I've fallen behind, and I'm working to get caught up, but for... (1 Reply)
Discussion started by: MrMagoo22
1 Replies

8. Shell Programming and Scripting

Variable value substitution issue with awk command issue

Hi All, I am using the below script which has awk command, but it is not returing the expected result. can some pls help me to correct the command. The below script sample.ksh should give the result if the value of last 4 digits in the variable NM matches with the variable value DAT. The... (7 Replies)
Discussion started by: G.K.K
7 Replies

9. Shell Programming and Scripting

How to ignore Pipe in Pipe delimited file?

Hi guys, I need to know how i can ignore Pipe '|' if Pipe is coming as a column in Pipe delimited file for eg: file 1: xx|yy|"xyz|zzz"|zzz|12... using below awk command awk 'BEGIN {FS=OFS="|" } print $3 i would get xyz But i want as : xyz|zzz to consider as whole column... (13 Replies)
Discussion started by: rohit_shinez
13 Replies

10. Shell Programming and Scripting

While read pipe input issue

Hello, I have an ffmpeg bash script which is working nice and I need to do the same for other sources. To create new scripts and to deal with multiple bash files sounds not logical. It is a bit hard to manage for me.. I wondered if it was possible to make my input file as variable. Then I... (1 Reply)
Discussion started by: baris35
1 Replies
remote(4)							   File Formats 							 remote(4)

NAME
remote - remote host description file SYNOPSIS
/etc/remote DESCRIPTION
The systems known by tip(1) and their attributes are stored in an ASCII file which is structured somewhat like the termcap file. Each line in the file provides a description for a single system. Fields are separated by a colon `:'. Lines ending in a `' character with an imme- diately following NEWLINE are continued on the next line. The first entry is the name(s) of the host system. If there is more than one name for a system, the names are separated by vertical bars. After the name of the system comes the fields of the description. A field name followed by an `=' sign indicates a string value follows. A field name followed by a `#' sign indicates a following numeric value. Entries named tipbaudrate are used as default entries by tip, as follows. When tip is invoked with only a phone number, it looks for an entry of the form tipbaudrate, where baudrate is the baud rate with which the connection is to be made. For example, if the connection is to be made at 300 baud, tip looks for an entry of the form tip300. CAPABILITIES
Capabilities are either strings (str), numbers (num), or boolean flags (bool). A string capability is specified by capability=value; for example, `dv=/dev/harris'. A numeric capability is specified by capability#value; for example, `xa#99'. A boolean capability is specified by simply listing the capability. at (str) Auto call unit type. The following lists valid 'at' types and their corresponding hardware: biz31f Bizcomp 1031, tone dialing biz31w Bizcomp 1031, pulse dialing biz22f Bizcomp 1022, tone dialing biz22w Bizcomp 1022, pulse dialing df02 DEC DF02 df03 DEC DF03 ventel Ventel 212+ v3451 Vadic 3451 Modem v831 Vadic 831 hayes Any Hayes-compatible modem at Any Hayes-compatible modem br (num) The baud rate used in establishing a connection to the remote host. This is a decimal number. The default baud rate is 300 baud. cm (str) An initial connection message to be sent to the remote host. For example, if a host is reached through a port selector, this might be set to the appropriate sequence required to switch to the host. cu (str) Call unit if making a phone call. Default is the same as the dv field. db (bool) Cause tip(1) to ignore the first hangup it sees. db (dialback) allows the user to remain in tip while the remote machine disconnects and places a call back to the local machine. For more information about dialback configuration, see System Administra- tion Guide: IP Services. di (str) Disconnect message sent to the host when a disconnect is requested by the user. du (bool) This host is on a dial-up line. dv (str) Device(s) to open to establish a connection. If this file refers to a terminal line, tip attempts to perform an exclusive open on the device to insure only one user at a time has access to the port. ec (bool) Initialize the tip variable echocheck to on, so that tip will synchronize with the remote host during file transfer by waiting for the echo of the last character transmitted. el (str) Characters marking an end-of-line. The default is no characters. tip only recognizes `~' escapes after one of the charac- ters in el, or after a RETURN. es (str) The command prefix (escape) character for tip. et (num) Number of seconds to wait for an echo response when echo-check mode is on. This is a decimal number. The default value is 10 seconds. ex (str) Set of non-printable characters not to be discarded when scripting with beautification turned on. The default value is " f". fo (str) Character used to force literal data transmission. The default value is `377'. fs (num) Frame size for transfers. The default frame size is equal to 1024. hd (bool) Initialize the tip variable halfduplex to on, so local echo should be performed. hf (bool) Initialize the tip variable hardwareflow to on, so hardware flow control is used. ie (str) Input end-of-file marks. The default is a null string (""). nb (bool) Initialize the tip variable beautify to off, so that unprintable characters will not be discarded when scripting. nt (bool) Initialize the tip variable tandem to off, so that XON/XOFF flow control will not be used to throttle data from the remote host. nv (bool) Initialize the tip variable verbose to off, so that verbose mode will be turned on. oe (str) Output end-of-file string. The default is a null string (""). When tip is transferring a file, this string is sent at end-of-file. pa (str) The type of parity to use when sending data to the host. This may be one of even, odd, none, zero (always set bit 8 to 0), one (always set bit 8 to 1). The default is none. pn (str) Telephone number(s) for this host. If the telephone number field contains an `@' sign, tip searches the /etc/phones file for a list of telephone numbers -- see phones(4). A `%' sign in the telephone number indicates a 5-second delay for the Ventel Modem. For Hayes-compatible modems, if the telephone number starts with an 'S', the telephone number string will be sent to the modem without the "DT", which allows reconfiguration of the modem's S-registers and other parameters; for example, to disable auto- answer: "pn=S0=0DT5551234"; or to also restrict the modem to return only the basic result codes: "pn=S0=0X0DT5551234". pr (str) Character that indicates end-of-line on the remote host. The default value is ` '. ra (bool) Initialize the tip variable raise to on, so that lower case letters are mapped to upper case before sending them to the remote host. rc (str) Character that toggles case-mapping mode. The default value is `377'. re (str) The file in which to record session scripts. The default value is tip.record. rw (bool) Initialize the tip variable rawftp to on, so that all characters will be sent as is during file transfers. sc (bool) Initialize the tip variable script to on, so that everything transmitted by the remote host will be recorded. tb (bool) Initialize the tip variable tabexpand to on, so that tabs will be expanded to spaces during file transfers. tc (str) Indicates that the list of capabilities is continued in the named description. This is used primarily to share common capa- bility information. EXAMPLES
Example 1: Using the Capability Continuation Feature Here is a short example showing the use of the capability continuation feature: UNIX-1200: :dv=/dev/cua0:el=^D^U^C^S^Q^O@:du:at=ventel:ie=#$%:oe=^D:br#1200: arpavax|ax: :pn=7654321%:tc=UNIX-1200 FILES
/etc/remote remote host description file. /etc/phones remote host phone number database. SEE ALSO
tip(1), phones(4) System Administration Guide: IP Services SunOS 5.10 13 Jun 2002 remote(4)
All times are GMT -4. The time now is 03:04 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy