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 Wanet Telecoms Ltd 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. vodkadrinker

    listing commands hang

    Listing commands hang but work fine when piped through more. This hangs:- ls -ltr This works:- ls -ltr|more This issue rings a bell but I cannot remember the solution.
  2. vodkadrinker

    Windows display Little Endian text file

    I would like to output the contents of a Little Endian text file. I thought this was quite a simple task but it seems to be not that straight forward, from a Unix point of view I would just use the iconv command does Windows have a similar command or a simple way to do this?
  3. vodkadrinker

    Search for a string in a list element

    I am trying to find a string in a list element. example data '/home/myfiles/abc.bob/a file' '/home/myfiles/abc.bob/b file' '/home/myfiles/bbb.bob/a file' So from the data I want to find any line with "abc.bob" and then just count the number of them. The data is read into a list called...
  4. vodkadrinker

    bash date validate

    I am writing a simple script in bash so that it is easily portable, is there an easy way to validate a string is a date? Example My string should come back in the format "2013-03-07" CCYY-MM-DD however it may be blank or anything, if it's not in a date format then I would like to ignore it...
  5. vodkadrinker

    Deletion of none ascii char and null chars

    Is there and simple way to do these two commands in one? $logline =~ s/[^[:ascii:]]//g; $logline =~ s/\0//g;
  6. vodkadrinker

    Opening Large Files Question

    I am currently looking at opening large files, wondered if someone could answer a query. open (FILE, '<', $file) or die "$!\n"; while (<FILE>) { *Do stuff with line } a) When you use "open" does this read the whole file in before I start reading line by line? b) If it does open the whole file...
  7. vodkadrinker

    Check if Netbackup has been run from the AIX client

    Is there an easy way to check if a netbackup has been run from an AIX client? I have been monitoring the bpbk process running but wondered if there is an easier way to check the last time it was run, eg a log or a command. Note: I only have access to the client that the backup is run on.
  8. vodkadrinker

    Check if Netback has been run from the AIX client

    Is there an easy way to check if a netback has been run from an AIX client? I have been monitoring the bpbk process running but wondered if there is an easier way to check the last time it was run, eg a log or a command. Note: I only have access to the client that the backup is run on.
  9. vodkadrinker

    Write to a file with a max file size

    What I want to do is write the output of a truss to a file, however I only want to keep the last say 200 lines. Is there a way I can do this without creating a large output file first?
  10. vodkadrinker

    Read list into variables

    I use perl but still tend to switch to ksh as I know it better. I would like to read a list into variables, I see I can do a hashed array but I only see examples of a key plus a value. Is there a simple way to read a list in say like "who" output into variables that I can use? user1 pts/0...
  11. vodkadrinker

    PAM system-auth config

    I am looking to lock the user for 180 seconds if they get 3 failed logins. My system-auth-config is as follows:- #%PAM-1.0 # This file is auto-generated. # User changes will be destroyed the next time authconfig is run. auth required pam_env.so auth required...
  12. vodkadrinker

    awk -F

    If run the following command from the command line it works ok. awk -F ";" '$2 == "123"' /tmp/testfile However if I set a variable first it errors awk: 0602-562 Field $() is not correct. myvalue="123" awk -F ";" '$2 == $myvalue' /tmp/testfile cat testfile aa;1;mmm bb;123;zzz aa;123;ppp...
  13. vodkadrinker

    /etc/host multiple entries

    I have a question on how the host file works with multiple ip's for one alias. Personally I think DNS will fix my problem but I have been ask to check this way as well and I currently don't have access to an AIX server so your help will be greatly appriciated. If the hosts file has for...
  14. vodkadrinker

    While loop with a q to quit

    I want to put a q to quit option on an continuosly looping while loop. example of the while loop: while true do echo "hello world" sleep 5 done
  15. vodkadrinker

    Stopping false sub domains

    Currently xxx.mydomain.com goes to the primary domain mydomain.com page. How do I stop this so that if someone enters a subdomain that doesn't exist it doesn't go anyware?
  16. vodkadrinker

    Replicating logins across servers

    Is there any nice tools out their for replicating user logins across linux servers along with their passwords. Baiscally so I can add a user on a master server and it gets replicated on another server automatically.
  17. vodkadrinker

    rm'ed large file and do not see the space freed

    I have rm'ed a large file but it has not give the space back when I check the df. Is there anything I can check or do to get this space back?
  18. vodkadrinker

    Numeric Check

    Quick question on a numeric check in an if statement. The user can input any number if [ $numberinputbyuser = number ] ; then do whatever...
  19. vodkadrinker

    ramdisk info

    Please can someone point me in the right direction for ramdisks, more about how they work than how to create them.
  20. vodkadrinker

    Install Nagios on AIX

    Hi has anyone installed Nagios on AIX I've found a few documents. But and looking for something with abit more information. Any help greatly appreciated. VD

Part and Inventory Search

Back
Top