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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by OhNoNotAgain

  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 ?

    Thanks all for the replies ... I cannot use 'passwd -l username' as that sets the account to *LK* or locked. We are using the latest version of OpenSSH (v3.7.1p2) which does not allow access to locked accounts, hence the required change from *LK* to NP. I have done quite a bit of research and...
  3. 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
  4. 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...
  5. 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...
  6. 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