original file from print output - orgfile. formatted output - endfile. It would mkake my life easier if I could get the orgfile clean of all formatting so that process to produce the output would be shortened, The endfile should be in "pdf" format. Thanks
Hello,
I am trying to output the values in an array to a file. The output needs to be formated such that each array value is left jusified in a field 8 character spaces long. Also, no more than 6 fields on a line. For example:
@array= 1..14;
Needs to be output to the file like so:
1 ... (4 Replies)
Hi All :
I wanted a unix command by which I could be able to print the output to a file and at the same time to a printer. Any help will be greatly appreciated.
Regards,
Ramamurthy Dasari (1 Reply)
Dear All
I am stuck in one problem. Kindly help me.
I am taking below mention file as input file and want some op file as mention below.
Kindly send me all possible suggestion and query.
Thnaks
Jaydeep
bELOW IS THE INPUT FILE:
*** Connected to BSCANGR ***... (1 Reply)
Hi,
I have 2 different lan, each with a pc an a network printer.
I can access both lan using ssh.
how do I print a file from the first lan to a network printer on the second one.
Thanks in advance
Philippe
sorry it was suposed to go to the dummies forum (3 Replies)
Hi all, I want to start a new topic on this matter
I have this script,
#!perl
use strict;
use warnings;
use Data::Dumper;
open my $log, '>', 'log-external.txt' or die "Could not open log: $!";
print $log "Subnet,Static,DHCP,Unused\n";
open my $dump, '>', 'dump.log' or die... (2 Replies)
Hello Team i have a file with following data (as columns).
I need implement a syntax like below for altering table
ALTER TABLE1 TABLENAME
ADD COLUMN COL1 CHAR(5) NOT NULL WITH DEFAULT
ADD COLUMN COL2 CHAR(5)
..
..
ADD COLUMN COLn CHAR(5) NOT NULL... (1 Reply)
Hi,
Struggling with single quotes, double quotes, etc.
I want to print a header line, followed by lines with actual values, based on a print option.
In real life it is going to be something like 15 print options and 50 values.
Output will be 1 header and several value lines.
In this example... (5 Replies)
Hi Guys,
I was searching and landed up something here only.
This is the code and I want the formatted html in email but that is not working, anybody knows the reason why?
#!/bin/sh
set -x
DATE=`date -u`
# Print beginning of webpage
function html_header
{
cat <<END
... (5 Replies)
Hello.
First happy new year to everybody.
I have a script that generate a text file ( /tmp/part_list.txt for example ).
This file can be edited using a kde graphical text editor like kate or kwrite
The file can be printed out from command line or within the text editor using the print... (5 Replies)
Discussion started by: jcdole
5 Replies
LEARN ABOUT ULTRIX
lprm
lprm(1) General Commands Manual lprm(1)Name
lprm - remove jobs from line printer queue
Syntax
lprm [-Pprinter] [-] [job #...] [user...]
Description
The command removes a job, or jobs, from a printer's spool queue. Since the spooling directory is protected from users, using is normally
the only method by which a user may remove a job.
The command without any arguments deletes the currently active job if it is owned by the user who invoked
If the - flag is specified, removes all jobs which a user owns. If the super-user employs this flag, the spool queue is emptied entirely.
The owner is determined by the user's login name and host name on the machine where the command was invoked.
Specifying a user's name, or list of user names, causes to attempt to remove any jobs queued belonging to that user (or users). This form
of invoking is useful only to the super-user.
A user may dequeue an individual job by specifying its job number. This number may be obtained from the program. For example,
% lpq -l
1st: ken [job #013ucbarpa]
(standard input) 100 bytes
% lprm 13
The command announces the names of any files it removes and is silent if there are no jobs in the queue which match the request list.
The command kills off an active daemon, if necessary, before removing any spooling files. If a daemon is killed, a new one is automati-
cally restarted upon completion of file removals.
Options
- Removes all jobs owned by you only.
-P printer Removes jobs from specified printer. It may be used to specify the queue associated with a specific printer (otherwise
the default printer, or the value of the PRINTER variable in the environment is used).
Restrictions
Since there are race conditions possible in the update of the lock file, the currently active job may be incorrectly identified.
Diagnostics
``Permission denied" if the user tries to remove files other than his own.
Files
/etc/printcap printer characteristics file
/usr/spool/* spooling directories
/usr/spool/*/lock lock file used to obtain the pid of the current
daemon and the job number of the currently active job
See Alsolpq(1), lpr(1), lpd(8)lprm(1)