Hello all,
I have developed some code on a SUN Solaris 9 Sparc box, I want to produce a binary from this code that will also execute on Solaris 7 & 8 boxes and on both 32 and 64 bit machines.
I am using gcc to compile the code, can I have some recommendations on the best compile options to use...
Hello all,
I need to set a user id in the /etc/shadow file to be NP, e.g.
myuser:NP:::::::
I have to do this via a shell script and NOT by editing the /etc/shadow file. Any ideas how it can be done via the command line ?
Thanks
Hello all,
I have developed a C program that needs to run on a HP-UX and Sun Solaris. Depending on the machine I set certain variable contents. To do this I use ifdef to check the machine type, on Sun it works a treat, on HP no joy. This is what I have...
#ifdef hpux
char cBox[] = "I...
Hello All,
I have to write a C program that will work on AIX, HP-UX, Solaris and Linux boxes. The program will simply list files in a given directory that start with the word install_ and will display the found files in a menu for the user to select.
So far I have only done some testing on...
All,
Newish to C. On a UNIX box I want to execute an ls command and capture the files in an array of filenames.
Can someone please recommend a method and/or a good site for this type of function for Unix.
Thanks
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.