Search Results

Search: Posts Made By: ahmedwaseem2000
Forum: Red Hat 09-09-2016
4,725
Posted By ahmedwaseem2000
Thanks for the replies, unfortunately I couldn't...
Thanks for the replies, unfortunately I couldn't find a way out so I had to blow it out(forutnately new machine). However, I have to define the same script to run at the startup. Its an...
Forum: Red Hat 09-08-2016
4,725
Posted By ahmedwaseem2000
Profile.d script logs out
Hi,

I included a command set -o vi & sudo -l user -c script in profile.d and /etc/profile. unfortunately the script has some command that logs me out every time I try to login from all users...
1,578
Posted By ahmedwaseem2000
Either the original session or a new parallel...
Either the original session or a new parallel session
1,578
Posted By ahmedwaseem2000
Ok, let me try to clarify again. Sorry for the...
Ok, let me try to clarify again. Sorry for the confusion.

Here is a sample code


./wrapper.sh

within wrapper.sh


runuser -l username -c read -p "input a value" input



In the above...
1,578
Posted By ahmedwaseem2000
sure. I am running a setup program as root. This...
sure. I am running a setup program as root. This starts a web GUI to get user inputs. Using the input user name from the webpage it starts a command as su.



1. setup command holds the screen...
1,578
Posted By ahmedwaseem2000
Hi Don, It is indeed a foreground process...
Hi Don,

It is indeed a foreground process which is being created be a program as another user which I need to bring it on to a prompt to be able to input the values. is there a way to bring the...
1,578
Posted By ahmedwaseem2000
Bring prompt from a different process
Hi,

while running a program one of the command is creating a sub-shell which requires user inputs. Is there a way to bring the input prompt to a parallel session or an alternate way to input the...
Forum: Red Hat 03-05-2015
2,470
Posted By ahmedwaseem2000
Help needed to install mrepo
Hi,

My RHN subscription just got expired and I wouldn't want to renew the subscription just because I dont expect to contact RHN for support. I am running RHEL 6.4 on a VM. I just got to know...
1,762
Posted By ahmedwaseem2000
Thanks for your help. your code worked fine. I...
Thanks for your help. your code worked fine. I had already tried similar code but the difference was I didn't set RS, and instead of A[$0] =1 I assigned A[$0]=$0 and the array was getting jumbled...
1,762
Posted By ahmedwaseem2000
Remove sections based on duplicate first line
Hi,

I have a file with many sections in it. Each section is separated by a blank line.
The first line of each section would determine if the section is duplicate or not.
if the section is...
3,115
Posted By ahmedwaseem2000
Don Cragun, I was working with variables and...
Don Cragun, I was working with variables and wanted to check the whole words only. Do you know how to do it?


Junior - helper , That's exactly what I was struggling with.


Apart from...
3,115
Posted By ahmedwaseem2000
That's not what I was looking for. Your example...
That's not what I was looking for. Your example wouldd match the string present anywhere. Hence wanted to check the word boundaries
3,115
Posted By ahmedwaseem2000
awk word boundaries not working
Hi,

I am trying below code but the word boundaries not seem to be working. What am I doing incorrectly?

echo " ECHO " | awk '{ q="ECHO" ; if ( $0 ~ /\bq\b/) print "HELLO" ; }'

OR

echo "...
1,366
Posted By ahmedwaseem2000
Duplicate identification using partial matches
Hi ,

I have a column with names. I would want to match names which match either completely or partially and capture them in separate column like below.

Input
Abc
dbc
abc xyz
def ...
2,264
Posted By ahmedwaseem2000
True - The number of opening characters are not...
True - The number of opening characters are not matching the closing characters. This is not consistent across all records and not all records have this issue. I couldn't think of a pattern or...
2,264
Posted By ahmedwaseem2000
I did. Perhaps even tried to introduce the escape...
I did. Perhaps even tried to introduce the escape back slashes before the open and close bracket. However, neither of them worked.
2,264
Posted By ahmedwaseem2000
I got the error message Quantifier follows...
I got the error message
Quantifier follows nothing in regex; marked by <-- HERE in m/([("].*?[)"]|* <-- HERE .**)/ at -e
2,264
Posted By ahmedwaseem2000
Supress text
Hi,

I was looking for a simple code to suppress the text between 2 characters. the characters can be of same kind like "*" or "(" and ")". The number of characters are not consistent and could...
4,894
Posted By ahmedwaseem2000
Thats a good explanation to make people learn....
Thats a good explanation to make people learn. seldom find people trying to help learn :)
2,522
Posted By ahmedwaseem2000
Thanks - I tried the below code. It is able to...
Thanks - I tried the below code. It is able to capture the output in the Output.txt but its not capturing the output from the print lines which are within while loop.

open(my $DAT, "-|", "...
1,253
Posted By ahmedwaseem2000
Try this:
Try this:
2,522
Posted By ahmedwaseem2000
Capture output of open pipe to a file in perl
Hi,

I am trying to capture the output of the an open pipe in perl. but I am not sure how to do this. can some one please help me do that?

Below is the script I am using
Forum: Linux 02-17-2014
14,056
Posted By ahmedwaseem2000
Thank you all for all your help. I created the...
Thank you all for all your help. I created the links and everything seems to be back to normal again. :)
Forum: Linux 02-16-2014
14,056
Posted By ahmedwaseem2000
Hi Perderabo, It yes command is working...
Hi Perderabo,

It yes command is working exactly as your example.

# /usr/bin/yes | sed 2q
y
y

# ls -l /usr/bin/yes
-rwxr-xr-x. 1 root root 25664 May 16 2013 /usr/bin/yes


Ahamed101 -...
Forum: Linux 02-16-2014
14,056
Posted By ahmedwaseem2000
Yes, I do have the sudo root privilege. Here is...
Yes, I do have the sudo root privilege. Here is the output of the command

$ ls -ld / /bin /usr /usr/bin
dr-xr-xr-x. 25 root root 4096 Feb 14 17:06 /
dr-xr-xr-x. 2 root root 4096 Dec 13 03:50...
Showing results 1 to 25 of 297

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