Search Results

Search: Posts Made By: hasn318
1,970
Posted By hasn318
I am getting the below as output ...
I am getting the below as output

<pre>eccas2167 STALE mksysb</pre>
<pre>eccas2355 MISSING mksysb</pre>
1,970
Posted By hasn318
I tried the code as posted echo...
I tried the code as posted
echo "$Hostname,MISSING,HMCBackup" | tr ',' '\t' >> $BackupMsg

still the same. The tab spaces are off
2,025
Posted By hasn318
I did a echo $SHELL and added it to $PATH
I did a echo $SHELL and added it to $PATH
2,025
Posted By hasn318
Thanks for the inputs, that works. Now the script...
Thanks for the inputs, that works. Now the script that I have issue, I am trying to logon to a remote server and get a listing from a directory.

ssh -q servername 'ls -al /nim/dr/mksysb/*|grep...
2,025
Posted By hasn318
In the script or in the crontab?
In the script or in the crontab?
2,025
Posted By hasn318
Script only runs first time through crontab
Hello,

I am trying to run a script through crontab and it runs the first time and then it does not run.

I tried to run a simple script (as shown below) and I see the same issue.

#!/bin/ksh...
3,637
Posted By hasn318
I get the below error after the change: Day...
I get the below error after the change:

Day '' out of range 1..31 at /tmp/agedays.pl line 10
Day too big - 49731 > 24854
Sec too small - 49731 < 54821
Cannot handle date (0, 0, 0, 28, 1, 2106)...
1,970
Posted By hasn318
tabs=15 did not help, still the same output with...
tabs=15 did not help, still the same output with no uniform spacing
3,637
Posted By hasn318
Here is the full script: #!/usr/bin/ksh ...
Here is the full script:
#!/usr/bin/ksh
Path=/tmp
BackupInput=$Path/mksysbChk.input
agedays=/tmp/agedays.pl
ContactNIM=/usr/local/admin/bin/remote.pl
$ContactNIM --host=NIM1 --command=/bin/'ls...
1,970
Posted By hasn318
Well, it is giving the output as below without...
Well, it is giving the output as below without any spaces

fcop23\Stale\HMCBackup
ecopc23\Stale\HMCBackup

no spaces at all
3,637
Posted By hasn318
I am getting this error: ...
I am getting this error:

agedays.pl=/tmp/agedays.pl: no parent
1,970
Posted By hasn318
Hello rdrtx1, I tried your code and I still...
Hello rdrtx1,

I tried your code and I still get the same output.
1,970
Posted By hasn318
Uniform Spacing in the message
Hello,

I am running a script which sends an output as an email; I am having issues with the spacing being not uniform in the message. Snippet of the code and email message below:
if [[ $Backup...
3,637
Posted By hasn318
Since I will be calling agedays.pl in the other...
Since I will be calling agedays.pl in the other script, how do I use the date with agedays.pl in the other script.
1,903
Posted By hasn318
That works!! ---------- Post updated at...
That works!!

---------- Post updated at 04:26 PM ---------- Previous update was at 03:46 PM ----------

One thing I noticed is that every time I run the try.sh script, it keeps adding the cops21...
3,637
Posted By hasn318
./agedays.pl Day '' out of range 1..31 at...
./agedays.pl
Day '' out of range 1..31 at ./agedays.pl line 10

I am getting this error for the code below

#!//usr/local/bin/perl
use POSIX;
use Time::Local;

my %mon;
@mon{qw/Jan Feb Mar...
1,903
Posted By hasn318
The code you posted is adding all the names of...
The code you posted is adding all the names of folder

cops21_cops22_cops23_cops24_cops_25_HMCBackup_20161011.123704.tgz

---------- Post updated at 03:32 PM ---------- Previous update was at...
1,903
Posted By hasn318
cp file `echo "{PWD##*/}_filename"` cp: file:...
cp file `echo "{PWD##*/}_filename"`
cp: file: No such file or directory


cp HMCBackup_20161011.123704.tgz `echo "{PWD##*/}_filename"`
cp: {PWD##*/}_filename: No such file or directory
1,903
Posted By hasn318
./test: line 3: $: command not found ./test:...
./test: line 3: $: command not found
./test: line 4: cops22: command not found

I get this error

---------- Post updated at 02:37 PM ---------- Previous update was at 02:28 PM ----------
...
1,903
Posted By hasn318
Add part of directory name to filename
Hello,

I need to add a part of folder name to the files inside it. For instance the file is

HMCBackup_20150430.155027.tgz

and it is under directory /nim/dr/HMCBackup/cops22

I need to add...
3,637
Posted By hasn318
Hello Bakunin, Thanks for the offer to help,...
Hello Bakunin,

Thanks for the offer to help, I look forward to hearing back from you.


Thanks
3,637
Posted By hasn318
I am getting the below error, do I need to...
I am getting the below error, do I need to install a Perl module?

agedays.pl: not found [No such file or directory]

I do have Perl

which perl
/usr/local/bin/perl
3,637
Posted By hasn318
Below is the full script #!/usr/bin/ksh # ...
Below is the full script

#!/usr/bin/ksh
#
# mksysb.ksh verifies that current mksysb images are being maintained by the two mksysb (NIM) hosts,
# one in the DC1 and...
3,637
Posted By hasn318
I am using AIX 7.1 and it looks like I do not...
I am using AIX 7.1 and it looks like I do not have the GNU date, any other suggestion to simplify this script?
3,637
Posted By hasn318
There is another Rom2Jul under the while loop ...
There is another Rom2Jul under the while loop

Should I just delete it, if I use Current=$(( $(date +%y*365+%j) ))

---------- Post updated at 12:19 PM ---------- Previous update was at 12:08 PM...
Showing results 1 to 25 of 36

 
All times are GMT -4. The time now is 08:57 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy