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 dencom 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 2rArne

  1. 2rArne

    Need to set cron job to run 45 min time interval

    Answer: The answer is.... perhaps more than once ;) So - when does it run? Normally * represents all values in the range (for minutes, the range is 00-60). And the /<number> was how much to skip within this interval. As such, the syntax says run each minute, starting at 00 and then skip the...
  2. 2rArne

    Evaluation syntax in Unix commands

    I forgot to use -q with grep, in the curly brackets example :) Explanation: 'grep -q' - is a quiet grep and will only tell you if it found the expression or not. Based on the return code from grep I either cut the 17th or the 16th character out from the output of 'head -1 filename.ext' ----...
  3. 2rArne

    Evaluation syntax in Unix commands

    x will return either 16 or 17 17 if the 16'th character of the first line in file filename.ext is uppercase (range of A-Z), otherwise it will return 16 head -1 filename.ext |cut -c16 |grep [A-Z] && { # 16th character is in range A-Z head -1 filename.ext |cut -c17 } || { # 16th character...
  4. 2rArne

    Need to set cron job to run 45 min time interval

    Just some comments... p5wizard have given a good solution which importantly enough is portable. Some unices (especially Linux variants) might support syntax that include /<number> where ``/<number>'' specifies skips of the number's value through the range. # Min Hour DayOfMonth Month...
  5. 2rArne

    root pw AIX 4.1.5

    It depends what you mean about "Remove root password" If you have problems getting into the server because of a lost root password - and do not have any other ways to gain root access (example via ssh key authentication from a trusted server) aso. you have a more difficult task ahead. *** Most...
  6. 2rArne

    Canot mv or cp file having name beginning with $

    Escaping or quoting is one of the basic methods for handling special characters in unix. Also note that spaces can be a challenge, and might also impose a risk since a parameter/name can accidentally be mistreated as several individual parameters. Example: Filename with spaces -rw-r--r-- 1...

Part and Inventory Search

Back
Top