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

  • Users: TSch
  • Content: Threads
  • 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

    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...
  4. 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...
  5. 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...
  6. 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 ...
  7. 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...
  8. 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">...
  9. 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...
  10. 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'...
  11. 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...
  12. 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...
  13. 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...
  14. TSch

    Automatically unmount Filesystems before reboot.

    Hi everyone, I was wondering: How can it be accomplished, that all non rootvg filesystems are being automatically unmounted before System reboots when issuing the "reboot" command ? I understand there's the rc.shutdown file but this seems to work with "shutdown" command only and NOT with...
  15. TSch

    lpar2rrd shows strange blocks instead of text

    Hello everyone, when accessing lpar2rrd using Browser it shows strange blocks under graphs instead of Text as it is supposed to. Same issue occured when trying to display Ganglia Graphs. I've attached an example to this message. Any ideas ? Regards...
  16. TSch

    Problem with fuser within shell Scripts.

    Folks, it's driving me crazy again !!! Following problem: We're using Shell Scripts to start/stop applications on our servers. Some of them include unmounting several filesystems as well. Now, there are some systems where - after shutting down the application - several processes remain...
  17. TSch

    NSS Volumes: Problem with Access Rights

    Hello everyone, I was wondering: Is it possible to set rights on nss volumes in a way that users are ALLOWED to create Files within a Directory structure but are DENIED to create Directories within that structure ? Regards, Thomas
  18. TSch

    ksh: Problem with array elements containing spaces

    Hello everyone, I need to create an array containing the description text of several SAP transport. Problem is, that these description texts contain spaces (blank characters). Here's my problem code: set -A Text $(for items in `cat /scripts/global/tmp/Requests.lst`; do x=$(ssh machine "su -...
  19. TSch

    &quot;typeset -Ln&quot; not working under Linux ...

    Hi everyone, I'm used to using the typeset -Ln command under AIX to do the following: "Left-justify. Remove leading spaces; if n is given, fill with spaces or truncate on right to length n." Somehow under Linux this not working ... Any ideas what I have to use here instead ? Regards...
  20. TSch

    Call URL via command line and save output every minute ?!

    Hi folks, someone I know created some kind of "riddle". There's a URL (http://something.com/something.php) that's supposed to display the solution for a period of 1 Minute every day. The excact time of day is unknown and changes every day. Now my idea was the following: Is it possible...

Part and Inventory Search

Back
Top