HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Explanations for "gs"
Operating System - HP-UX
1826581
Members
3625
Online
109695
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2007 04:55 AM
07-12-2007 04:55 AM
Explanations for "gs"
Hello all,
We just ran into a b.. of a problem where a command works successfully when the script containing it is run from the command line but fails when started by Autosys on a remote server. The command is:
exec gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite "-sOutputFile=$outfile"
$OPTIONS -c .setpdfwrite -f "$infile"
Can anyone explain this command, specifically the "-c .setpdferite" options.
$OPTIONS contains "-dSAFER -dCompatibilityLevel=1.2"
And where can I find which shared libraries gs is referencing?
Thanks
We just ran into a b.. of a problem where a command works successfully when the script containing it is run from the command line but fails when started by Autosys on a remote server. The command is:
exec gs $OPTIONS -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite "-sOutputFile=$outfile"
$OPTIONS -c .setpdfwrite -f "$infile"
Can anyone explain this command, specifically the "-c .setpdferite" options.
$OPTIONS contains "-dSAFER -dCompatibilityLevel=1.2"
And where can I find which shared libraries gs is referencing?
Thanks
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2007 05:13 AM
07-12-2007 05:13 AM
Re: Explanations for "gs"
To see the shared libraries simply run;
ldd gs
You will need to be in the correct directory or use the full path.
What error(s) are you getting when running from Autosys? The main problem I've seen is with the environment settings. When logged into the server and running via command line you may have the correct environment, but unless defined correctly these may not work from Autosys.
David
ldd gs
You will need to be in the correct directory or use the full path.
What error(s) are you getting when running from Autosys? The main problem I've seen is with the environment settings. When logged into the server and running via command line you may have the correct environment, but unless defined correctly these may not work from Autosys.
David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2007 05:19 AM
07-12-2007 05:19 AM
Re: Explanations for "gs"
It looks like you're using GhostScript to convert a file to PDF. BATCH and NOPAUSE mean don't wait for a user to hit enter and just exit as soon as the whole thing is processed. I think "-c .setpdfwrite" is actually a GhostScript shortcut/macro to set a number of options to the values usually needed for PDF output. GhostScript is kind of complicated, it has way too many options to remember, but the documentation is freely available online.
I'm not on an HP right now, but think you can run chatr or ldd on the binary to list the shared libraries.
I'm not on an HP right now, but think you can run chatr or ldd on the binary to list the shared libraries.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2007 06:55 AM
07-12-2007 06:55 AM
Re: Explanations for "gs"
We determined that the invalid environment variable was TMPDIR.
We created a workaround by forcibly setting ot in a local profile script.
Does anyone know what the profile setup order is for a job scheduled remotely by autosys to be executed on a Linux server?
Thanks
We created a workaround by forcibly setting ot in a local profile script.
Does anyone know what the profile setup order is for a job scheduled remotely by autosys to be executed on a Linux server?
Thanks
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Support
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP