Discussion Locked

printing a line at a time

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I'm running a hpux system with a hp laserjet printer. What i'm looking for is a way to print a single line of data then stop for an hour. If anyone can think of a short script that will achive this i would be grateful.

5 replies

by gutridgesj

not sure about hpux, but in other forms of unix there is a sleep command that makes a script stop for x-number of seconds or minutes.

generically and depending on what hpux does, a script would look like:

print command
sleep xx

Or, I guessyou could make a script and put it in a cron that run every minute. That would work too.

by shiny_topadm

Here's something to be aware of, that could be a problem, depending on your printer and your goals: The printer probably has a time-out value for how long it will wait for data to complete a page. (laser printers are by definition "page-printers",not "line-printers"). This is usually a number of seconds, after which the page will eject (with only your one line printed). If you can't find this parameter, let me know the model and I'll get you more specifics... - Will

This discussion is closed to new replies.