HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- What command, from C or Fortran languages, write ...
Operating System - Linux
1829108
Members
12946
Online
109986
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
02-20-2006 08:12 PM
02-20-2006 08:12 PM
What command, from C or Fortran languages, write directly in spool ?
My names is Roxana and I'am from Brasov, Romania.
I work on a HP-UX 11.23 system.
I would ike to know how could I list a spool from a program released in C language or Fortran language ?
What command exists in C language or Fortran languaje, for spool writing? With what command, from C or Fortran languages, could I write directly in spool ?
Thank you
an best regards.
I work on a HP-UX 11.23 system.
I would ike to know how could I list a spool from a program released in C language or Fortran language ?
What command exists in C language or Fortran languaje, for spool writing? With what command, from C or Fortran languages, could I write directly in spool ?
Thank you
an best regards.
- Tags:
- lp
3 REPLIES 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 08:47 PM
02-20-2006 08:47 PM
Re: What command, from C or Fortran languages, write directly in spool ?
Hi Roxana,
Did u mean, maintaing the command history ,by meaning spool. Could you eloborate more on your question.
Well technicality aside, from ur other question, u replied that you were new to HPUX and learning. This would explain why you are introducing urself in every thread. So, spare the introduction. Every one in here is "Learning and sharing" knowledge. so u are not alone. Feel at home, and a warm welcome. Please feel free to query any questions without qualms and jitteriness.
Regards,
Senthil Kumar .A
Did u mean, maintaing the command history ,by meaning spool. Could you eloborate more on your question.
Well technicality aside, from ur other question, u replied that you were new to HPUX and learning. This would explain why you are introducing urself in every thread. So, spare the introduction. Every one in here is "Learning and sharing" knowledge. so u are not alone. Feel at home, and a warm welcome. Please feel free to query any questions without qualms and jitteriness.
Regards,
Senthil Kumar .A
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2006 08:51 PM
02-20-2006 08:51 PM
Re: What command, from C or Fortran languages, write directly in spool ?
Hello,
Check this out, http://www.tldp.org/HOWTO/Printing-Usage-HOWTO-2.html
-Arun
Check this out, http://www.tldp.org/HOWTO/Printing-Usage-HOWTO-2.html
-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2006 02:03 AM
02-21-2006 02:03 AM
Re: What command, from C or Fortran languages, write directly in spool ?
You essentially have 2 choices:
1) use the system() function to invoke lp just as you would from the shell.
status = system("lp -dmyprinter myfile");
2) Write to a pipe:
FILE *f;
f = popen("lp -dmyprinter","w");
if (f != NULL)
{
(void) fprintf(f,"This is a test\n");
status = pclose(f);
}
Man system,popen,pclose for details.
1) use the system() function to invoke lp just as you would from the shell.
status = system("lp -dmyprinter myfile");
2) Write to a pipe:
FILE *f;
f = popen("lp -dmyprinter","w");
if (f != NULL)
{
(void) fprintf(f,"This is a test\n");
status = pclose(f);
}
Man system,popen,pclose for details.
If it ain't broke, I can fix that.
- Tags:
- system
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP