Thank you everyone for your advice. I was able to do some of what jgt has suggested, even with my very limited knowledge of Unix. I've set up a file printer and printing to it produces exactly what I need, a plain text file in a folder.
The custom Cobol programming seems to only be willing to print to printers with certain names, lp0, lp1, or lp2. So I had to modify those printers to actually get any reports to appear in /u/spool.
Is there an easy way to include what user has sent the print job? Either with a banner page or by having the name of the user appended onto the name of the print file. Currently the files name is the request id, 638245-1 for example.
I added code from here
however I was not successful in getting a banner page. I didn't include the line with: stty 19200 ctsflow 0<&1, and I put: echo "\014\c" under the line: cp ${file} /u/spool/`/bin/basename $file`. I tried different combinations of that above code, using most of it, just parts of it, moving things around, but nothing worked. The file always showed up, but never had a banner page.
Next thing to do is focus on Samba or Visionfs, but so far this has been a huge step forward for us. After years of neglecting the issue, we are finally moving in the right direction.
Use only one of the cp lines. Using the first, you need a directory for each user, using the second, the user's logname is appended to the file name.
If you are using RM cobol, there is a config file that contains the relationship between lpx and the actual queue/destination name.
I have files named with different prefixes. From each I want to extract the first line containing a specific string, and then print that line along with the prefix.
I've tried to do this with a while loop, but instead of printing the prefix I print the first line of the file twice.
Files:... (3 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (4 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
Hi,
I have to print a excel file in solaris server. I am using lexmark printer with post script printer driver . But the problem is when i am using " lp -d <printer name> <somefile name.xls>" command it is not printing correctly. but for pdf file using the same command it printing correctly.
... (2 Replies)
Hi,
I have two files. 1st file has 1 column (huge file containing ~19200000 lines) and 2nd file has 2 columns (small file containing ~6000 lines).
#################################
huge_file.txt
a
a
ab
b
##################################
small_file.txt
a 1.5
b 2.5
ab ... (4 Replies)
I'm trying to clean up my samba share and need to print the found file or print the path of the image it tried to searched for. So far I have this but can't seem to get the logic right. Can anyone help point me in the right direction?
for FILE in `cat list`; do
if ;
then
... (1 Reply)
using OS X and the Terminal, I'd like to find all locked files in a specified directory, unlock them, and print a list of those files that were unlocked
how can I do this?
I'm familiar with chflags nouchg for unlocking one file but not familiar with unix enough to do what I'd like.
Thanks! (0 Replies)
Need shell script to read two file at same time and print output in single file
Example I have two files 1) file1.txt 2) file2.txt
File1.txt contains
Aaa
Bbb
Ccc
Ddd
Eee
Fff
File2.txt contains
Zzz
Yyy
Xxx (10 Replies)
hello
have a file1
H87I
Y788O
T347U
J23U
and
file2 J23U U887Y I99U T556U
file3 I99O J99T F557J
file4 N99I T666U R55Y
file5 H87I T347U
file6 H77U R556Y E44T
file7 Y788O K98U H8I
May be using script we can use file1 to search for all the files
and have the output
H87I file5... (3 Replies)