Displaying 2 results from an estimated 2 matches for "_hostname_".
Did you mean:
_hostname
1999 May 05
0
Printing from Linux -> NT with banners
...produces. Since my printer is postscript, that's what I produced:
BANNER=/tmp/lprbanner$$
while getopts cw:l:i:n:h: flag; do
case $flag in
(n) printuid=$OPTARG ;;
(h) printhost=$OPTARG ;;
esac
done
cat template.ps | sed -e "s/_USERNAME_/$printuid/
s/_HOSTNAME_/$printhost/" > $BANNER
then later in the script:
(cat $BANNER; <other commands to produce PS output from print job>) |
smbprint
Template.PS is a template banner, which can be as flashy as you like (mine
has Tux in the corner)
Hope this is useful; apologies if it's old hat; and...
2017 Mar 29
3
upsd/upsc, LISTEN and hostname resolution in master/slave
thank you Arno, I'm with Manuel on the "IP address or hostname", maybe I
didn't understand your previous explanation, but to me there's still a
bigger issue/unclear behavior.
Let's say I just installed ubuntu on a machine with hostname server1 and ip
192.168.0.1 . In /etc/hosts I end up with two lines (per