Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. OhNoNotAgain

    SUN Solaris (SPARC) gcc Compile Options ?

    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...
  2. OhNoNotAgain

    How To Set A User As NP In /etc/shadow ?

    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
  3. OhNoNotAgain

    Easy one for you, where is hpux defined ?

    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...
  4. OhNoNotAgain

    C Across Unix Platforms

    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...
  5. OhNoNotAgain

    Need to get a file list into an array of files ?

    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

Part and Inventory Search

Back
Top