08-17-2014
It sounds to me like this user is trying to learn how to write C programs. Assuming nerdbee has access to a system with a C compiler, the differences between Linux and UNIX should not be an issue at this stage. A good book on C is what is needed (not a book on the Linux or UNIX operating system). Of course the man pages on the system in use will be important if the user is trying to write code optimized for a particular system. But, in my opinion, nerdbee should start by learning to write portable C code that can be compiled and run on any system long before worrying about the differences between the UNIX and Linux operating systems.
This User Gave Thanks to Don Cragun For This Post:
9 More Discussions You Might Find Interesting
1. AIX
Hi,
I am new script programming, I have written a script shown velow to read username and passwd from /etc/security/passwd, i am able to read username, but unable to grep lastupdate. please look into the code and suggest if any changes need.
#!/bin/ksh
USERNAME=""
fname=/usr/bin/lastupdate... (1 Reply)
Discussion started by: me_haroon
1 Replies
2. Shell Programming and Scripting
Hi
I have the following at the end of a service shutdown script used in part of an active-passive failover setup:
###
# Shutdown all primary Network Interfaces
# associated with failover
###
# get interface names based on IP's
# and shut them down to simulate loss of
# heartbeatd
... (1 Reply)
Discussion started by: mikie
1 Replies
3. UNIX for Advanced & Expert Users
Hi
I am new to Unix/Linux
I know commands and shell scripts which are useful for my project.
But i need to know the basics and commands and shell scripts in detail and easy guide.
Please refer a book.
Thanks
Haripatn (6 Replies)
Discussion started by: haripatn
6 Replies
4. Shell Programming and Scripting
Hi All,
I have made the following code which is taking 10-15 mins to execute completely. Here the file am using is very big( around 1050993843). Can any one make some changes in my code which reduces the time it takes to execute as am very much new to Unix(learner).
One more thing, i have... (10 Replies)
Discussion started by: madhavsunduru
10 Replies
5. Shell Programming and Scripting
Hi!
I need to install a application from one server to several other servers. My script would copy the install-script to other machines and run it.Since it has to be non-interactive , just wondering if yum can be used for the same.
Please let me know , if you guys are aware of other... (1 Reply)
Discussion started by: nua7
1 Replies
6. Shell Programming and Scripting
hi i need to get the values from an xml file like the <TAG> values and write to a file please suggest me the commands and some good reading material sites so that i can implement (1 Reply)
Discussion started by: perlamohan
1 Replies
7. What is on Your Mind?
I am new to unix world. I just know some basic commands only and some basics knowledge about unix. Anyone please suggest me from where should I start. Suggest me some book that could help me from the beginning. Presently I am working in php in a company and I want to move in unix. Please suggest me... (1 Reply)
Discussion started by: UNITRIX
1 Replies
8. Shell Programming and Scripting
i am jaswanth,
i am very new to unix/linux, upto now i worked in windows only., but i took coatching for unix.., and my sir teached all my classes in red hat linux and told me that all are same...!!!
I know shall programming in red hat linux..,
but now i installed opensloaris but the... (5 Replies)
Discussion started by: strgraphics
5 Replies
9. Ubuntu
recommend books to understand ubuntu ...... (14 Replies)
Discussion started by: vyom
14 Replies
HPSET(1) LOCAL HPSET(1)
NAME
hpset -- printer commands
SYNOPSIS
hpset [-hco] [commands ...]
DESCRIPTION
hpset is used to send commands to a printer. These commands are synonyms for ESC Codes based on the PCL standard from Hewlet Packard.
Options
-c redirect output to stdout
-oname redirect output into the specified file or device redirect
-h prints a help message
Commands
back Puts every setting back to the printer defaults.
test Starts the self test.
out If paper is inside the printer it will be thrown out.
cr activates the linefeed
lbon acivates the linebreak.
leftright
forces the printer to print only from left to right.
rightleft
forces the printer to print only from right to left.
bidirect
forces the printer in both ways.
execoff
The following commands are not executed but printed.
execon The following commands are executed.
nice High quality printing.
econo Enables fast and economic printing.
landscape
Printing in landscape format.
portrait
Printing in portrait format.
lpinum Sets the lines per inch. For num use 6 or 8.
The following commands must be sent in the given order and sequence. The sequence looks like,
hpset [characterset] [characterdistance] [character density]
[point size] [type position] [line strength] [type]
-Characterset
english ISO 4
ansi ANSI ASCII ISO 6
sweden ISO 10
italian ISO 15
spain ISO 17
german ISO 21
france ISO 69
-Characterdistance
prop Proportional
fix Fixed
If you've chosen proportional you don't have to set the character density.
-Characterdensity
cpi# # is one of 5,6,10,12,16,16.67,20,24
-Pointsize
point# # is one of 4.75,5,6,7,8,9.5,10,12,14,19,24
-Typeposition
italic
upright
-Linestrength
bold
normal
-Type
courier
times
gothic
univers
Notice that not every combination of the commands above is possible. Refer
to the manual of HPSET where you can find a table with allowed combinations.
SEE ALSO
lpr(1), lpd(1),
BUGS
report them to michael.janson@stud.uni-karlsruhe.de
LINUX
April 27, 1997 LINUX