- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Assigning variables to null
Categories
Company
Local Language
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
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
Community
Resources
Forums
Blogs
- 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
11-05-2002 07:45 AM
11-05-2002 07:45 AM
We need to have variables assigned called GL_SPOOLER during user sign-on for some Openspool print queues. Is it possible to assign these to null for some users who do not need all the useless output that their batch jobs create without causing errors in the batch jobs themselves?
Regards
Michael
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2002 07:50 AM
11-05-2002 07:50 AM
Re: Assigning variables to null
I'm not sure to understand your problem, but :
A - any variable can be set to null, the problem will depend on what your jobs do with them
B - Be careful with '-u' option of shells. In this case, any non set variable reference will generate an error (unset parameter). Use 'set +u' to disable this feature.
Regards
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2002 07:54 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2002 07:58 AM
11-05-2002 07:58 AM
Re: Assigning variables to null
If the variable is et in /etc/profile (normal system variable location), then add a clause. First make a list of users who do not need the variable.
Then throw a condition into the bottom of the clause to see if the user is in the list.
I.E.
ME=/bin/who am I
NOGLSPOOL=/etc/no_gl_spooler.lst
for I in `cat $NOGLSPOOL` ; do
if [ "$ME" = "$I" ] ; then
GL_SPOOLER=""
else
echo "">>/dev/null
#avoids strange errors
fi
done
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2002 08:02 AM
11-05-2002 08:02 AM
Re: Assigning variables to null
GL_SPOOLER='/dev/null'
Chuck J