Search Results

Search: Posts Made By: hasn318
3,642
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)...
3,642
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...
3,642
Posted By hasn318
I am getting this error: ...
I am getting this error:

agedays.pl=/tmp/agedays.pl: no parent
3,642
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.
3,642
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...
3,642
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,642
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,642
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,642
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,642
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...
3,642
Posted By hasn318
Help understanding the script
Could someone please help me in understanding the code below:
#!/usr/bin/ksh
Month=`date|cut -c5-7`
Day=`date|cut -c9-10`
Year=`date|cut...
Showing results 1 to 11 of 11

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