giving a 'lpr' command from within a C program

giving a 'lpr' command from within a C program

Post by <dmall.. » Fri, 20 Aug 1999 04:00:00



i need to issue an 'lpr' que command from within my C program.

i would be really grateful for a pointer.

thanks.

dave mallery

------------------  Posted via CNET Linux Help  ------------------
                    http://www.searchlinux.com

 
 
 

giving a 'lpr' command from within a C program

Post by Jon Bloo » Fri, 20 Aug 1999 04:00:00



> i need to issue an 'lpr' que command from within my C program.

> i would be really grateful for a pointer.

man system

Jon
--
Jon Bloom, KE3Z

Electronic Publications Manager (Software, CD-ROMs and Web site)

 
 
 

giving a 'lpr' command from within a C program

Post by RHS Linux Us » Fri, 20 Aug 1999 04:00:00


Hi,

I used the following in a C++ program of mine, but it's in stdlib.h (I think), and if
I'm not mistaken, that's a C library.

Give a look at the system() function.

As in...

system('ls');

or something like that.

I think it takes an array of char or something like that, I forget.

~Chris Greer

: i need to issue an 'lpr' que command from within my C program.

: i would be really grateful for a pointer.

: thanks.

: dave mallery

: ------------------  Posted via CNET Linux Help  ------------------
:                     http://www.searchlinux.com