Search Results

Search: Posts Made By: mrn6430
2,802
Posted By mrn6430
How to make df command?
in RHEL 6.10, how can we make the the df -k return the output without wrapping. And wihout using the df -Pk option. After we patched a Linux server from 6.5 to 6.10:

The df -k on RHAT 6.10 it...
4,096
Posted By mrn6430
Yes. Under...
Yes. Under /production/79p/perl5/lib/5.28.0/x86_64-linux/auto/IO/Pty


Here is my perl5lib:


%ENV:
PERL5LIB="/production/79p/perl5/lib/5.28.0/x86_64-linux/auto"
4,096
Posted By mrn6430
Can't locate loadable object for module IO::Tty
I am getting this error:
Can't locate loadable object for module IO::Tty in @INC (@INC contains: /production/79p/perl5/lib/site_perl/5.28.0/x86_64-linux /production/79p/perl5/lib/site_perl/5.28.0...
Forum: Programming 08-22-2017
1,915
Posted By mrn6430
I am using cpan now to install it and to compile...
I am using cpan now to install it and to compile which is more cleaner. However, I have this error still:
LD_RUN_PATH="/opt/mqm/lib" gcc -shared -Wl,-rpath -Wl,/opt/mqm/lib MQSeries.o constants.o ...
Forum: Programming 08-21-2017
1,915
Posted By mrn6430
PERL MQSeries MQCONN issue
Hi,

I have an issue with a PERL5 script that calls MQCONN. I get this error on this Perl step when connecting to my Q manager: "Undefined Undefined subroutine &main::MQCONN called at ./quelog.pl "...
Forum: Linux 06-28-2017
2,790
Posted By mrn6430
Does root have to have anything setup for myid...
Does root have to have anything setup for myid when it runs the the ssh -x myid@hostname so it will not required the password ? or will it just automatically pickup my id ssh keys located on my id...
Forum: Linux 06-27-2017
2,790
Posted By mrn6430
I need it done without the ssh keys. I have the...
I need it done without the ssh keys. I have the ssh keys in place. However this script will be use by an HA software that will call under root and it must su to that id so it can run the commands. ...
Forum: Linux 06-27-2017
2,790
Posted By mrn6430
How to make this command work wihtout password prompt?
Hi,

I am trying to run this command to connect to each server without being prompted for the password. How can I do this in Linux redhat 7.2:


for HOST in $VIPS; do
su - Myadminid -c "ssh...
Forum: Solaris 06-09-2017
1,275
Posted By mrn6430
XML value compare and replace
I need a way to to check if a value in a file that has this XML format is less than or equal to current system date/time. if it is I need to override it with a future date/time:

Here is the...
Forum: Solaris 06-09-2017
765
Posted By mrn6430
When I use SED with double " to take $NTIMESTAMP...
When I use SED with double " to take $NTIMESTAMP value, it gives me this:

<MSGTYPE>QI</MSGTYPE><TIMESTAMP>$NTIMESTAMP</TIMESTAMP>
It is not passing the date value from the variable.

Only...
Forum: Solaris 06-09-2017
765
Posted By mrn6430
I tried that and did no work at all. But using...
I tried that and did no work at all. But using this works:

eval "$(echo "sed -e 's|<TIMESTAMP>[0-9a-z.]\{1,\}|<TIMESTAMP>$N_TIMESTAMP|g' $QLOG")" > $QLOG.tmp
It seems to be the only way to make...
Forum: Solaris 06-09-2017
765
Posted By mrn6430
Passing a varaible to sed issue
I am unable to make it work. I tried dbl quotes ...etc. Nothing works. I am trying to replace value in an XML file to current system date/time. Here is my code:

NTIMESTAMP=`date '+%m%d%Y%H%M%S'`
...
2,824
Posted By mrn6430
UNIX script email to outlook report format
I have a ksh script that emails a report to outlook from a Unix Solaris. On server the report formatted perfectly. However, the email version the format is not.

On the server report looks like...
Forum: Solaris 04-27-2017
7,898
Posted By mrn6430
My bad. it is solaris 10 that I am using.
My bad. it is solaris 10 that I am using.
Forum: Solaris 04-27-2017
7,898
Posted By mrn6430
Getting this error: Date: illegal option -- d ...
Getting this error:
Date: illegal option -- d
usage: date [-u] mmddHHMM[[cc]yy][.SS]
date [-u] [+format]
date -a [-]sss[.fff]
Forum: Solaris 04-27-2017
7,898
Posted By mrn6430
Convert GMT date and time to CST
I need away to convert the following GMT date and time value RAW_TME= 042720171530 "mmddccyyhhmm" to Localhost time. In this case it is in central time.
Here is what I came up with but it does not...
2,158
Posted By mrn6430
Did not work. Updated code below
#!/bin/bash
read -p "Enter Telephone number to check: " telno
TnDash=`echo ${telno:0:3}-${telno:4:3}-${telno:8}`
if [ ${telno} == ${telno#*[^0-9]} ] && [ ${#telno} -eq 10 ]; then
TN=`echo...
2,158
Posted By mrn6430
Telephone Format and Check
How can I script to check telephone number entered by user in a uniz script:

print -n "Enter telephone number to check ? " ; read telno


How do I script to :
1) Check if entered...
Forum: Programming 03-30-2017
1,347
Posted By mrn6430
Perl - EMail issue - NEED Help
I have a perl that is sending emails in a bad format:
"begin 644 Included.doc
M*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ*BHJ...
13,077
Posted By mrn6430
Perfect. Thank you so much
Perfect. Thank you so much
13,077
Posted By mrn6430
How can I use this same perl command but o...
How can I use this same perl command but o display alpha values? for ex if I want:

display the value of MSGCODE in this xml:

Thu Jan 26 13:44:21 2017 Logged Message:473|<?xml...
8,188
Posted By mrn6430
Here is the final code that works with my...
Here is the final code that works with my standard ksh version. It is working great now. Thank you all for your help.

RAW_TME=`perl -nle '/<TIMESTAMP>([\d-]*)</ and print $1' $DATA/MY_PRA.xml`...
8,188
Posted By mrn6430
It does not work: I get this error...
It does not work:

I get this error "testzone.ksh[4]: NLOG_TME="${LOG_TME:4:4}-${LOG_TME:0:2}-${LOG_TME:2:2} ${LOG_TME:8:2}:${LOG_TME:10:2}:${LOG_TME:12:2}": bad substitution"

Note: When I do...
8,188
Posted By mrn6430
But how do I convert that GMT time mmddccyyhhmmss...
But how do I convert that GMT time mmddccyyhhmmss format stored in variable LOG_TME from my code above to CST time or local time and store that it NLOG_TME variable ?
8,188
Posted By mrn6430
It is stored in a file originally in this format:...
It is stored in a file originally in this format:
mmddccyyHHMMSS in a GMT format.
I storing the value from the file into a field:

LOG_TME=`perl -nle '/<TIMESTAMP>([\d-]*)</ and print $1'...
Showing results 1 to 25 of 115

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