Sponsored Content
Full Discussion: Data differences
Top Forums Shell Programming and Scripting Data differences Post 302434242 by ggoliath on Friday 2nd of July 2010 01:55:45 AM
Old 07-02-2010
Here some lines from the text files:
this is the local server:
Code:
tail -20 sun5-printers.txt
device for 5001jnl: lpd://172.25.12.27:515
device for 5001pr1: lpd://172.25.6.28:515
device for 5001prg: lpd://172.25.6.27:515
device for 5001x01: lpd://172.25.12.160:515
device for 5001x02: lpd://172.25.12.160:515
device for 5601ge1: lpd://172.25.12.32:515
device for 6101a01: lpd://172.25.26.26:515
device for device: ///dev/null

this is the remote server
Code:
device for 5001hp1: socket://172.25.11.213:9100
device for 5001jnl: lpd://172.25.12.27:515
device for 5001pr1: lpd://172.25.6.28:515
device for 5001prg: lpd://172.25.6.27:515
device for 5001x01: lpd://172.25.12.160:515
device for 5001x02: lpd://172.25.12.160:515
device for 5601ge1: lpd://172.25.12.32:515
device for 6101a01: lpd://172.25.26.26:515

NOTE* printers exists on both servers, but sometimes Ip addresses may change on the remote server that have to be resynced onto the local server

Code:
more diffs.txt
device for 0606ge1: lpd://172.28.9.29:515
device for 5001a44: lpd://172.25.6.31:515
device for device: ///dev/null
device for 5001a55: lpd://172.25.6.31:515

 

9 More Discussions You Might Find Interesting

1. Solaris

Differences between Solaris 2.5 and 9

Hi Can anybody tell what are the great differences in Solaris 2.5 and 9? I am seeking information like differences in libraries, User Interface, Configuraion files, daemons, Packaging and archiving tools, Hardware supported etc. Please help me, as this is little urgent. Even if you can refer... (4 Replies)
Discussion started by: charlcy
4 Replies

2. Shell Programming and Scripting

Sort differences

I have a file that contains /home /opt /stand /var /usr /tmp /opt /home I need to print the lines that are unique so the output would be /stand /var /usr /tmp and omit any filesystems that are duplicates. I searched the forums but did not find anything, although i searched on... (3 Replies)
Discussion started by: insania
3 Replies

3. UNIX for Dummies Questions & Answers

Differences

Hi all, I am using korn shell. I want to know what is the difference between hey and echo commands. (1 Reply)
Discussion started by: sivakumar.rj
1 Replies

4. Shell Programming and Scripting

Help with file differences

I have two huge files in the size of 1gb. They are produced by similar processes and the expected thing is that they should match in size and contents. I have produced both the files with the processes and they seem to be off only by few bytes. Size file name 1634502037 ... (2 Replies)
Discussion started by: dsravan
2 Replies

5. Shell Programming and Scripting

Printing the differences

Dear All, I am having a file with thousands of columns. I would like to find the difference between adjacent columns (ie $i and $(i+1)) and perform the following action: if the difference is less than -10, then i need to print "-2"; if the difference is between 0 and <-9, then i need to... (2 Replies)
Discussion started by: Fredrick
2 Replies

6. Shell Programming and Scripting

Differences between 2 Flat Files and process the differences

Hi Hope you are having a great weeknd !! I had a question and need your expertise for this : I have 2 files File1 & File2(of same structure) which I need to compare on some columns. I need to find the values which are there in File2 but not in File 1 and put the Differences in another file... (5 Replies)
Discussion started by: newbie_8398
5 Replies

7. Shell Programming and Scripting

Differences between 2 directories

Hi, I am trying to write a script under ksh to list all the differences between two directories. For example: # ls test1 test2 I need to compare all the files under between test1 & test2. When I do diff, it only compares the diectoires but it doesn't check inside. I did do... (3 Replies)
Discussion started by: samnyc
3 Replies

8. Shell Programming and Scripting

Differences between shells

What is the practical difference among the different shell like csh , ksh , bash etc.:confused::confused: Please use descriptive subjects instead of single words (2 Replies)
Discussion started by: hiten.r.chauhan
2 Replies

9. Shell Programming and Scripting

{} and ( ) differences

Can u tell the diff between the 1) $a and ${a} 2)] and ( ) 3)" " and ' ' , ` ` 4) 'a' , "a", please explain with simple example (1 Reply)
Discussion started by: mrbinoy
1 Replies
in.lpd(1M)						  System Administration Commands						in.lpd(1M)

NAME
in.lpd - BSD print protocol adaptor SYNOPSIS
/usr/lib/print/in.lpd DESCRIPTION
in.lpd implements the network listening service for the BSD print protocol specified in RFC 1179. The BSD print protocol provides a remote interface for systems to interact with a local spooling system. The protocol defines five standard requests from the client to the server: starting queue processing, transferring print jobs, retrieving terse status, retrieving verbose status, and canceling print jobs. The in.lpd service is managed by the service management facility, smf(5), under the service identifier: svc:/network/lp Administrative actions on this service, such as enabling, disabling, or requesting restart, can be performed using svcadm(1M). Responsibil- ity for initiating and restarting this service is delegated to inetd(1M). Use inetadm(1M) to make configuration changes and to view config- uration information for this service. The service's status can be queried using the svcs(1) command. in.lpd uses the config/log_from_remote property to allow or disallow remote access. The default value of this property, localhost, disal- lows remote access. inetd waits for connections on TCP port 515. Upon receipt of a connect request, in.lpd is started to service the connection. Once the request has been filled, in.lpd closes the connection and exits. EXAMPLES
Example 1 Allowing Remote Access The following command allows remote access to in.lpd. # inetadm -m svc:/application/print/rfc1179:default bind_addr="" EXIT STATUS
The following exit values are returned: 0 Successful completion. non-zero An error occurred. FILES
/etc/printers.conf System printer configuration database. printers.conf.byname NIS version of /etc/printers.conf. printers.org_dir NIS+ version of /etc/printers.conf. /usr/lib/print/bsd-adaptor/bsd_*.so* Spooler translation modules. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpcu | +-----------------------------+-----------------------------+ SEE ALSO
svcs(1), inetadm(1M), inetd(1M), svcadm(1M), printers.conf(4), attributes(5), smf(5) SunOS 5.11 1 Aug 2006 in.lpd(1M)
All times are GMT -4. The time now is 04:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy