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 SkipVought 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: *

  • Users: TSch
  • Order by date
  1. TSch

    ksh find without subdirectories

    Hi everyone, I'm afraid ... It is driving me crazy again ... :-/ I'm trying to use find ./ -name XYZ -mtime +50 ... without diving into any of the subdirectories, because he's supposed to find certain files in the main directory and move them into the subdirectories ... But somehow ...
  2. TSch

    Difference between two Timestamps

    Hello everyone, using ksh I need to figure out how many days have passed between a timestamp and the current date of today. Format of the timestamp is: YYYYMMDD (e.G. 20200703) Using date +%Y%m%d will give me the correct format for the current date and at first sight simply substracting...
  3. TSch

    mkuser not working

    Good Morning, looks like the /etc/security/mkuser.sys does a lot of mkdir, chmod, chown, chgrp itself ... Maybe you should start by checking all the directories and files mentioned there for correct rw permissions. Best Regards, Thomas
  4. TSch

    Problem with NFS automount

    Hi Folks, I've got the following Problem: We defined an NFS Share on one of our AIX Systems (NFS Version 3) and tried to Mount it on a SLES 12 machine. Manually using mount -t nfs 111.11.1.11:/share /mountpoint -o nfsvers=3 works fine so far ... But how the heck do I put this into...
  5. TSch

    "Press any key to continue" function ... Problem when <Enter> is pressed ...

    My goodness, must have been too much code for me lately so I missed the fact that I forgot the second $key ... ;-) Thanks a lot ! :-)
  6. TSch

    "Press any key to continue" function ... Problem when <Enter> is pressed ...

    Hi everyone, I included the following function into my latest script: function fkt_continue { echo "\033[1;36mPress any key to continue (or <Q> to quit) ...\033[m" stty -echo stty raw key=$(dd bs=1 count=1 2> /dev/null) > /dev/null stty echo stty -raw if [ $key = "Q" -o "q" ]; then exit 1...
  7. TSch

    Filter out columns with same value from a list

    Hello again, I'm facing the following Problem (AIX, ksh): I got a list containing the following columns: Filename;OrderNo;ModifyDateofFile Now the challenge is to filter out all the entries with the same OrderNo and only keep the one with the latest ModifyDateofFile Timestamp ... Any...
  8. TSch

    Execute ssh command on VIO Server

    Hi Folks, when I use ssh padmin@vioserver "lsmap -all" it Returns rksh: lsmap: not found. If I Login to the VIO Server as padmin first and then execute the command, everything is fine. Is there any way to make it possible to execute commands "remote" without having to Login first ...
  9. TSch

    Count up several variables ...

    Hi feherke, thanks a lot, it's working perfect now ! However ... Runtime is a good Point. ;-) I was really hoping it would be running a "little bit" faster. I tried to Speed it up a bit but I'm afraid that's still far from what I would Need ... ;-( #!/usr/bin/ksh A=1 while (( A < 2000 ))...
  10. TSch

    Count up several variables ...

    Hi folks, sorry I must be getting a little bit rusty ... :-( Could you help me out with the following: I have 5 Variables (A B C D E). Each Variable is starting with a value of 1 and can count up to 2000. I want to start with A=1 B=1 C=1 D=1 E=1 and first count up E up to 2000. As soon as it...
  11. TSch

    How to submit a form ?

    Thanks a lot for all the Input. Everything is working fine now !
  12. TSch

    How to submit a form ?

    Hello everyone, I know this is kind of a basic question but no matter how much I google, I just can't figure out how to do it ... :-( I have several forms. Each with a question you can answer checking one of the provided radio buttons. Like this: <form action="radio.html" method="post">...
  13. TSch

    Filling an array not all at once

    Hi feherke, sorry, here's a little bit more Detail: I'm using the following command to generate a list (Array) of remote Printers: set -A prtlst $(enq -isWA | awk '{print $1}' | grep -v " " | grep -v QUEUED | grep -v Queue | grep -v '\-----') Next Comes the ping of each Print Server...
  14. TSch

    Filling an array not all at once

    Hello everyone, using ksh so far I know that if I would like to fill an Array I can e.G. use something like this: set -A arrayname $(cat file) set -A arrayname $(some command) But what if I do not wish to fill the Array all at once ? Let's say I have a list of Servers. Now I ping each one...
  15. TSch

    Slideshow combined with HTML &quot;map&quot;

    Hi folks, I found a little script to run a slideshow on my page: <!DOCTYPE html> <html> <head> <title>Slideshow</title> </head> <body> <?php # Imagedirectory $verzeichnis = "2/"; # Speed # 3000 = 3 Seconds $peed = 1000; echo " <div style='text-align: center;'><img id='dummy'...
  16. TSch

    HMC - Reset or Refresh dlpar List

    Hi everyone, I was wondering: On our Systems we Keep the definitions of unused LPARs that have no more disks attached to it and have been shut down so that we don't have to perform all the creation steps again if we Need a new LPAR somewhere in the future. Now the Problem is, that the...
  17. TSch

    Build array using Variable

    Hi Folks, I was wondering ... ;-) I know I can create an Array using set -A myarray $(cat filename.txt) So ... Is it possible to do the same using Variables like that: for i in sys1 sys2 sys3; do set -A AR$i $(cat /tmp/$i.txt) done Using the code from above I Keep getting the error...
  18. TSch

    Extract certain lines from an output.

    Perfect, thanks a lot !
  19. TSch

    Extract certain lines from an output.

    Hi everyone, I understand that you can use cat something.txt | sed -ne '1p' cat something.txt | sed -ne '2,4p' to either extract one or several lines from an Output. However ... How can it be accomplished to extract several specific lines from an Output ? Let's say I want only lines 2,5...
  20. TSch

    Automatically unmount Filesystems before reboot.

    Hi NoLogic001, IBM told us we'd have to take care of that ourself ... Problem is: On one machine certain filesystems are always corrupted after a reboot and an fsck has to be performed. IBM came up with the hint that those filesystems are not being unmounted cleanly during a reboot and we were...

Part and Inventory Search

Back
Top