Sponsored Content
Operating Systems AIX Print to Windows PDF printer from AIX Post 302936443 by jgt on Wednesday 25th of February 2015 01:44:47 PM
Old 02-25-2015
Code:
     1  #!/usr/bin/ksh                                              
     2  #email pay stub to employee, as password protected pdf and  
     3  #store pdf file in pay period folder in payhistory folder   
     4  EMAIL=$1                                                    
     5  PERIOD=$2                                                   
     6  EMPL=$3                                                     
     7  PASSWORD=$4                                                 
     8  PAYSTUB=$6                                                  
     9  EMAILFLAG=$5                                                
    10  PAYROLL=$7                                                  
    11  echo $1 $2 $3 $4 $5 $6 $7 >>email.log                       
    12  if [ ! -d payhistory ]                                      
    13  then                                                        
    14          mkdir payhistory                                    
    15          chmod 0755 payhistory                               
    16  fi                                                          
    17  if [ ! -d payhistory/$PAYROLL ]                             
    18  then                                                        
    19          mkdir payhistory/$PAYROLL                           
    20          chmod 0755 payhistory/$PAYROLL                      
    21  fi                                                          
    22  if [ ! -d payhistory/$PAYROLL/$PERIOD ]                     
    23  then                                                        
    24          mkdir payhistory/$PAYROLL/$PERIOD                   
    22  if [ ! -d payhistory/$PAYROLL/$PERIOD ]                  
    23  then                                                     
    24          mkdir payhistory/$PAYROLL/$PERIOD                
    25          chmod 0755 payhistory/$PAYROLL/$PERIOD           
    26  fi                                                       
    27  /usr/gnu/bin/enscript -f Courier10 -p - <$PAYSTUB |\     
    28  ps2pdf  -  payhistory/$PAYROLL/$PERIOD/$EMPL.pdf

Make "payhistory" a shared folder (Samba/NFS) and replace enscript with your script that assembles the Postscript file.
 

9 More Discussions You Might Find Interesting

1. AIX

AIX 5.2 print to a local printer

HHi guys . I have this problem ,I'm trying to print to a local machine (windows from the aix box , I;m using tiny Term Emulator) I mean i have no idea what should i do to get this going. The printer is connect it to the pc , it does not have an ip address. Thanks a lot Jose (0 Replies)
Discussion started by: josramon
0 Replies

2. UNIX for Advanced & Expert Users

Configure SCO Unix to print on windows base XP printer

Hi, I have done this year ago, and now I need to do it again, but did not remember how I do it. I have a slip printer on a windows xp workstation and i need to print from SCO unix application to that printer. I try to create a remote printer but the only option available is unix, the other to... (0 Replies)
Discussion started by: comsiconsa
0 Replies

3. UNIX Desktop Questions & Answers

wt is the exact procedure to share windows printer on linux machine to print from it

hi, what is the exact procedure to to set up printer on linux machine?The printer is a network hp 3050 printer configured on windows xp machine and i want to setup it on linux fc9 machine to print from it.is samba is compulsory for that? please give the exact procedure to do the same? (1 Reply)
Discussion started by: pankajd
1 Replies

4. AIX

Check printer queue on Windows printer server

Hello Let me first give a small overview of the setup. All printers are connected to Windows 2000 servers. There are a lot of UNIX (AIX & HP-UX) servers as well which have SAP running. I'm working on a script to add printers to a specified SAP instance. I want to verify the user input (to... (0 Replies)
Discussion started by: NielsV
0 Replies

5. UNIX for Dummies Questions & Answers

smbclient print while preserving windows printer settings?

I have successfully gotten AIX to print to a windows shared printer with this command: smbclient -U user%password -W domain -c "print file.ext" the only problem is: I have this print queue set up on the Windows side to overlay an image to all pages. When printing from samba, the overlay... (2 Replies)
Discussion started by: raidzero
2 Replies

6. AIX

AIX printer and extra blank page after each print

Guy's I have installed AIX direct Network printer as the below details.... printer1 hp@printer1 hplj-3 (HP-GL/2) Printer is printing fain and clearly but it's printing extra blank page after each print ? What's the couse of this problem ? Pls advice ! (6 Replies)
Discussion started by: ITHelper
6 Replies

7. AIX

Create pdf printer queu

I need to create a print queue in AIX to be able to print directly to pdf (or a network based printer) from a informix based application (Genero/FourJ). I have a AIX 5.3 a I canīt find any documentation for this. If possible I would not like to use any thirth party software. Can someone help me on... (2 Replies)
Discussion started by: marques_rmc
2 Replies

8. AIX

How to print PDF files on AIX 5.3?

Hello All, How to print PDF files on AIX 5.3 and 6.1 because i tried adobe reader with no success, any help will be highly appreciated. Thank you (8 Replies)
Discussion started by: moudmm
8 Replies

9. UNIX for Beginners Questions & Answers

Remote print from SLES (SAP) to AIX 7.1 04 sp2 virtual printer queue gets down

Hello Administrators. I have a bit difficult problem. I have local virtual printer that has backend defined in /etc/qconf to script which in turns sends the spool to the real device. whenever I print locally (from sap) the print works as it should. The printer queue after the print is done... (6 Replies)
Discussion started by: Deneth
6 Replies
RST2PDF(1)						      General Commands Manual							RST2PDF(1)

NAME
rst2pdf - Convert reStructuredText documents to PDF SYNOPSIS
rst2pdf [options] DESCRIPTION
The usual way of creating PDF from reStructuredText (ReST) is by going through LaTeX. The rst2pdf utility provides an alternative by pro- ducing PDF directly using the ReportLab library. OPTIONS
--output=FILE, -o FILE Specify output location. --stylesheet=STYLESHEET, -s STYLESHEET Specify custom stylesheets (comma-seperated) --compressed, -c Create a compressed PDF. --print-stylesheet Print the default stylesheet and exit. --language=LANG, -l LANG Language to be used for hyphenation. --break-level=LEVEL, -b LEVEL Maximum section level that starts in a new page. (Default: 1) --font-folder=FOLDER Search this folder for fonts --quiet, -q Print less information. --verbose, -v Print debugging information. --very-verbose Print even more debugging information. -help, -h Show help message. EXAMPLES
$ rst2pdf rest.txt -o out.pdf Produce an out.pdf file which is a PDF version of the ReST document rest.txt. AUTHOR
rst2pdf was written by Roberto Alsina <ralsina@netmanagers.com.ar>. This manual page was written by Chris Lamb <chris@chris-lamb.co.uk>, for the Debian project (but may be used by others). September 01, 2008 RST2PDF(1)
All times are GMT -4. The time now is 03:44 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy