<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: LPDEST in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798932#M392364</link>
    <description>&amp;gt;hence setenv (so does export) is not available.&lt;BR /&gt;&lt;BR /&gt;Of course setenv is available, you are using the scummy C shell or its improved derivative, tcsh.&lt;BR /&gt;&lt;BR /&gt;This script assumes that LPDEST has already been exported before you invoke it.&lt;BR /&gt;&lt;BR /&gt;So as MK said, you can export it in your scummy C shell ~/.login profile:&lt;BR /&gt;setenv LPDEST some-printer&lt;BR /&gt;&lt;BR /&gt;Or the user can invoke that setenv in his session, sometime before printing.</description>
    <pubDate>Thu, 16 Jun 2011 09:20:29 GMT</pubDate>
    <dc:creator>Dennis Handly</dc:creator>
    <dc:date>2011-06-16T09:20:29Z</dc:date>
    <item>
      <title>LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798928#M392360</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I would like to edit the spooler destination.&lt;BR /&gt;&lt;BR /&gt;I know that LPDEST from env is the place to make the change.&lt;BR /&gt;&lt;BR /&gt;1. Is there a possible to edit the env itself (i guess not, but just to be sure).&lt;BR /&gt;&lt;BR /&gt;2. How can I set env parameters?&lt;BR /&gt;&lt;BR /&gt;3. where can I define the spooler destination?&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;&lt;BR /&gt;Yaron&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 15 Jun 2011 10:18:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798928#M392360</guid>
      <dc:creator>Yarok</dc:creator>
      <dc:date>2011-06-15T10:18:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798929#M392361</link>
      <description>On any server with multiple printers, there should never be a default destination printer (lpadmin -d) because someone will complain that it is not the printer they want to use. So make sure there is no default printer (lpstat -d). Then for each user, add the desired printer name in $HOME/.profile like this:&lt;BR /&gt; &lt;BR /&gt;export LPDEST=prn32&lt;BR /&gt; &lt;BR /&gt;Now, this user will automatically print to prn32.&lt;BR /&gt; &lt;BR /&gt;On the other hand, if you only have one printer, just use the command:&lt;BR /&gt; &lt;BR /&gt;lpadmin -dprn678&lt;BR /&gt; &lt;BR /&gt;and now, all users will print to the same printer without having to use the lp -d option.</description>
      <pubDate>Wed, 15 Jun 2011 13:33:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798929#M392361</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2011-06-15T13:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798930#M392362</link>
      <description>LPDEST is an environment variable. &lt;BR /&gt;&lt;BR /&gt;"env" is not a file or a place: it is one of the many ways to display all the environment variables that are currently set.&lt;BR /&gt;&lt;BR /&gt;To see all the configured spooler destinations, run "lpstat -p". The output should look like this:&lt;BR /&gt;&lt;BR /&gt;$ lpstat -p&lt;BR /&gt;printer foobar is idle.  enabled since Jan 28 15:00&lt;BR /&gt;        fence priority : 0&lt;BR /&gt;&lt;BR /&gt;In the above example, there is only one spooler destination, "foobar".&lt;BR /&gt;If you want to configure more spooler destinations (= printers), use SAM/SMH, or commands "lpadmin" or "addqueue" (for network printers only).&lt;BR /&gt;&lt;BR /&gt;To set environment variables like LPDEST, you first need to know which shell you're using. The command "echo $SHELL" might be helpful here.&lt;BR /&gt;&lt;BR /&gt;If you're using tcsh or csh (yuck), you can set/overwrite environment variables with commands like:&lt;BR /&gt;&lt;BR /&gt;setenv VARIABLE value&lt;BR /&gt;i.e.&lt;BR /&gt;setenv LPDEST foobar&lt;BR /&gt;&lt;BR /&gt;If the variable already exists, the new value will overwrite the old one automatically.&lt;BR /&gt;&lt;BR /&gt;To unset (remove) a variable with tcsh or csh:&lt;BR /&gt;&lt;BR /&gt;unsetenv VARIABLE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;With most other shells (i.e. the Bourne/POSIX-style shells) like sh, ksh, bash and zsh, the commands are slightly different.&lt;BR /&gt;&lt;BR /&gt;In these shells, there are two common ways to set an environment variable:&lt;BR /&gt;&lt;BR /&gt;VARIABLE=value&lt;BR /&gt;export VARIABLE&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;export VARIABLE=value&lt;BR /&gt;&lt;BR /&gt;To unset(delete) an environment variable in Bourne/POSIX-style shells:&lt;BR /&gt;&lt;BR /&gt;unset VARIABLE&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The environment variables are specific to each process. A child process receives a copy of its parent's environment variables at the moment of its creation. &lt;BR /&gt;&lt;BR /&gt;(That is, assuming the variable is *exported*: in csh/tcsh, all environment variables are exported by default. In Bourne/POSIX shells, if the "export" command is not used, the variable will not be copied to the environment of the child processes; it will be available for the shell itself only.)&lt;BR /&gt;&lt;BR /&gt;Each process can only change its own environment variables. &lt;BR /&gt;&lt;BR /&gt;The environment variables are not persistent: if you set them in your login session and then log out, you'll need to set them again in your next session. To set an environment variable persistently, you'll need to add a command to set the variable in your login script, so that the variable will be automatically set as you want it each time you log in.&lt;BR /&gt;&lt;BR /&gt;MK</description>
      <pubDate>Wed, 15 Jun 2011 13:39:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798930#M392362</guid>
      <dc:creator>Matti_Kurkela</dc:creator>
      <dc:date>2011-06-15T13:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798931#M392363</link>
      <description>Many thanks for complete answers.&lt;BR /&gt;&lt;BR /&gt;I know you all avoid of working with tcsh but this is the shell running here.&lt;BR /&gt;(This is due to comfortable environment reasons for users, such as up arrow for last command) hence setenv (so does export) is not available.&lt;BR /&gt;&lt;BR /&gt;The users use a print script called sps which defines the $LPDEST for pe2 printer.&lt;BR /&gt;&lt;BR /&gt;So, how and where can I set LPDEST (script; env).&lt;BR /&gt;&lt;BR /&gt;I attached the script as well.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;&lt;BR /&gt;Yaron.&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2011 06:27:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798931#M392363</guid>
      <dc:creator>Yarok</dc:creator>
      <dc:date>2011-06-16T06:27:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798932#M392364</link>
      <description>&amp;gt;hence setenv (so does export) is not available.&lt;BR /&gt;&lt;BR /&gt;Of course setenv is available, you are using the scummy C shell or its improved derivative, tcsh.&lt;BR /&gt;&lt;BR /&gt;This script assumes that LPDEST has already been exported before you invoke it.&lt;BR /&gt;&lt;BR /&gt;So as MK said, you can export it in your scummy C shell ~/.login profile:&lt;BR /&gt;setenv LPDEST some-printer&lt;BR /&gt;&lt;BR /&gt;Or the user can invoke that setenv in his session, sometime before printing.</description>
      <pubDate>Thu, 16 Jun 2011 09:20:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798932#M392364</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2011-06-16T09:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798933#M392365</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] tcsh [...] (This is due to&lt;BR /&gt;&amp;gt; comfortable environment reasons for users,&lt;BR /&gt;&amp;gt; such as up arrow for last command) [...]&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.gnu.org/software/bash/" target="_blank"&gt;http://www.gnu.org/software/bash/&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.2/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.2/&lt;/A&gt;</description>
      <pubDate>Thu, 16 Jun 2011 09:58:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798933#M392365</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-16T09:58:05Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798934#M392366</link>
      <description>Thank you for your replies.&lt;BR /&gt;&lt;BR /&gt;Dear Steven,&lt;BR /&gt;&lt;BR /&gt;I would like to download bash from the link you sent &lt;A href="http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.2/)" target="_blank"&gt;http://hpux.connect.org.uk/hppd/hpux/Shells/bash-4.2/)&lt;/A&gt; for 11.11v.&lt;BR /&gt;&lt;BR /&gt;It is with .gz extension.&lt;BR /&gt;&lt;BR /&gt;Should I copy it to /sbin and istall it there? How to Install?&lt;BR /&gt;BR,&lt;BR /&gt;&lt;BR /&gt;Yaron</description>
      <pubDate>Sun, 19 Jun 2011 07:28:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798934#M392366</guid>
      <dc:creator>Yarok</dc:creator>
      <dc:date>2011-06-19T07:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798935#M392367</link>
      <description>&lt;!--!*#--&gt;&amp;gt; It is with .gz extension.&lt;BR /&gt;&lt;BR /&gt;This is pretty common knowledge.  Did you try&lt;BR /&gt;anything simple like a Web search for, say,&lt;BR /&gt;      .gz&lt;BR /&gt;?  Google works for me.  Or:&lt;BR /&gt;      man gzip&lt;BR /&gt;&lt;BR /&gt;Or the FAQ link at the top of that Web page?&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/answers/" target="_blank"&gt;http://hpux.connect.org.uk/hppd/answers/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;[...]&lt;BR /&gt;4. SOURCE PACKAGE DISTRIBUTIONS&lt;BR /&gt;4.1 How do I unpack the sources?&lt;BR /&gt;[...]&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://hpux.connect.org.uk/hppd/answers/4-1.html" target="_blank"&gt;http://hpux.connect.org.uk/hppd/answers/4-1.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;If this remains a mystery, then you might try&lt;BR /&gt;to find some local help.</description>
      <pubDate>Sun, 19 Jun 2011 11:55:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798935#M392367</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-19T11:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798936#M392368</link>
      <description>&lt;!--!*#--&gt;Also, ...&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Should I copy it to /sbin [...]&lt;BR /&gt;&lt;BR /&gt;No.&lt;BR /&gt;&lt;BR /&gt;Normally, anyone who has the "root" password&lt;BR /&gt;should already know these things.  Or be&lt;BR /&gt;reading much more about HP-UX (or UNIX in&lt;BR /&gt;general) then he'll find in answers here.</description>
      <pubDate>Sun, 19 Jun 2011 12:04:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798936#M392368</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2011-06-19T12:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPDEST</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798937#M392369</link>
      <description>Dear Steven,&lt;BR /&gt;&lt;BR /&gt;Handling with .gz is well known. That was not the issue.&lt;BR /&gt;&lt;BR /&gt;Obviously, I am not the scholar sys admim and I just try to learn the matter.&lt;BR /&gt;&lt;BR /&gt;I probably should go back to the books. Thank you for your help.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;&lt;BR /&gt;Yaron&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Jun 2011 05:34:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/lpdest/m-p/4798937#M392369</guid>
      <dc:creator>Yarok</dc:creator>
      <dc:date>2011-06-20T05:34:06Z</dc:date>
    </item>
  </channel>
</rss>

