Sponsored Content
Top Forums Shell Programming and Scripting Set custom separator for sscovert Post 302976587 by RudiC on Friday 1st of July 2016 06:56:29 AM
Old 07-01-2016
Thanks for sharing your solution.
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to set Field Separator for TCLSH??? :S

Hi, I am having a problem, with setting the FS in TCLSH, maybe someone knows the answer. I have a Tclsh/Tk script, and i´m trying to get all (only) the running processes for the given user like this: foreach process { puts stdout $process; } This also works, but... (2 Replies)
Discussion started by: laptop87
2 Replies

2. UNIX for Dummies Questions & Answers

How to set server's ip address, router, network mask and set if it is an internal or external ip?

Hello, I need to write a program which sets server's ip address, router, network mask. Program also should set if it is an internal or external ip. Maybe someone can help me ? Any information from u is very useful :b: I stopped at .. :( #!/bin/sh A=`hostname -i` echo "server ip address is $A"... (4 Replies)
Discussion started by: zagaruika
4 Replies

3. Shell Programming and Scripting

set Net:SSH:Expect timeout and set it again.

SSHing into a machine can take a few seconds, but after I'm in, the commands return quickly. I was wondering if the timeout setting can be changed once I'm logged into the machine. Does anyone know if this can be set on the fly? The problem here is, if I have to set timeout = 10, it'll take 10... (1 Reply)
Discussion started by: mrwatkin
1 Replies

4. Solaris

LC_ALL & LANG are set OK, but others couldn't set locale correctly.

Hi, I have a Solaris (SunOS 5.10) installed, by default with the en_AU.UTF-8 locale. I want to change it to en_US.UTF-8 With AU, I have no issues whatsoever, so I installed the language package and now locale -a shows "en_US.UTF-8". Problem is even with LC_ALL set in etc/default/init, the... (2 Replies)
Discussion started by: asdfg
2 Replies

5. Shell Programming and Scripting

[SOLVED] How to set field separator in awk when FS is "||" ?

Dear Experts, How to use field separator in awk , when the field separation is needed as "||" Example: (file1 ) aa || bb || cc || 1234 xx || yy || zz || 1123 Q: If I want to print $3 and $4 only , with using the field separator "||" How to write awk code: (6 Replies)
Discussion started by: rveri
6 Replies

6. Shell Programming and Scripting

Help needed with shell script to search and replace a set of strings among the set of files

Hi, I am looking for a shell script which serves the below purpose. Please find below the algorithm for the same and any help on this would be highly appreciated. 1)set of strings need to be replaced among set of files(directory may contain different types of files) 2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies

7. Shell Programming and Scripting

Awk, with separator |

Friends have the following code that is correct. BEGIN { num_reg = 0 suma_iva=0 } { num_reg++ suma_iva=suma_iva+int(substr($0, 103,9)) } END{ printf ("%011d",suma_iva) } I have the following problem, I have to do just that but this time... (4 Replies)
Discussion started by: tricampeon81
4 Replies

8. Shell Programming and Scripting

Separator

Hello everybody, I'll get one more help I have a cabundle file that I need to separate into 2 parts, the first sequence and the second sequence, I thought of several things but I did not remember anything that could actually accomplish this separation and transform into 2 variables, first... (4 Replies)
Discussion started by: c0i0t3
4 Replies
recserv(1M)															       recserv(1M)

NAME
recserv - HP SharedX Receiver Service SYNOPSIS
/usr/lbin/recserv DESCRIPTION
HP SharedX Receiver Service provides a method for a receiver to allow the sharing of windows without explicitly performing any xhost com- mands. The Internet daemon (inetd(1M)) executes recserv when it receives a service request at the port listed in the services data base for recserv (see inetd(1m) and services(4)). When recserv is executed via inetd, a dialog box appears informing the receiver of the share request by the sender. The receiver can allow or disallow the share request by selecting the YES or NO button. recserv allows sharing by xhosting the sender just long enough for it to make a connection to the receiver. Once the connection is estab- lished recserv removes the sender from the access control list, unless the sender was entered in the list prior to the execution of rec- serv. Since no permanent change is made to the access control list, security is maintained at its highest level. To start recserv from the Internet daemon, the configuration file /etc/inetd.conf must include the single line entry, recserv stream tcp nowait bin /usr/lbin/recserv recserv -display :0 If the sharing is going to be done between IPv6 machines, the protocol field of the above entry in /etc/inetd.conf file of the receiver machine should be changed to tcp6 as follows recserv stream tcp6 nowait bin /usr/lbin/recserv recserv -display :0 and the services file /etc/services must include the line, recserv 7815/tcp # SharedX Receiver Service Receiver Service options, set by selecting the Options button, dictate the behavior of recserv. The behavior can also be set by running recserv manually. In either case, an X server resource is set dictating the behavior for subsequent invocations of recserv. OPTIONS
The following options allow different behavior according to user preferences. AlwaysAsk The dialog will pop up each time sharing is requested, regardless of the security on your X server. AlwaysAllow The dialog box never appears, but sharing will always be allowed. AskUnhosted The dialog will pop up only if the sender's machine is not hosted on your machine. If the sender's machine is already hosted, sharing will occur without a dialog appearing. NeverAsk The dialog will never appear. Windows are shared only if the sender's machine is already hosted by your server. To set resources (system behavior, label strings, etc) globally for a system, edit the file /usr/lib/X11/app-defaults/RecServ. AUTHOR
HP SharedX Receiver Service was developed by Hewlett Packard. SEE ALSO
SharedX(1), inetd(1M), xhost(1), hosts(4), inetd.conf(4), inetd.sec(4), services(4). recserv(1M)
All times are GMT -4. The time now is 06:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy