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 ...
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...
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
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...
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...
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...
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 ...
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 ))...
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...
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">...
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...
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...
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'...
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...
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...
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...
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...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.