Search Results

Search: Posts Made By: ce9888
1,703
Posted By ce9888
Exactly what i was looking for. Thanks for...
Exactly what i was looking for.

Thanks for all the solutions
1,703
Posted By ce9888
Delete multiple lines between blank lines containing two patterns
Hi all,

I'm looking for a way (sed or awk) to delete multiple lines between blank lines containing two patterns ex:


user: alpha
parameter_1 = 15
parameter_2 = 1
parameter_3 = 0

user:...
Forum: AIX 07-21-2015
3,391
Posted By ce9888
Ok here's the details Server A configuration...
Ok here's the details

Server A configuration

p02s:root# cat /etc/exports
/home -access=sdt-net
/home/s/JourEceArch -access=sdt-net
/home/s/web -access=sdt-net...
Forum: AIX 07-21-2015
3,391
Posted By ce9888
Automount issue
Hi there,

I have a strange problem, I have a NFS server running AIX 7.1 TL3 SP3, let's call it server A. I have another AIX 7.1 TL3 SP3 server, let's call it server B, that's automounting a...
1,617
Posted By ce9888
Thanks for your quick response but its not...
Thanks for your quick response but its not working on my system. I'm on AIX 7.1


ce9888@a03d:/users/ce9888 > N=2
ce9888@a03d:/users/ce9888 > pass="12345"
ce9888@a03d:/users/ce9888 > echo...
1,617
Posted By ce9888
Assigning * as value in a ksh array
I want to extract each and single character from a password string and put it in an array.

I tried this :

set -A password "echo $passwd | awk '{for (i=1; i<=length($1); i++) printf "%s...
1,519
Posted By ce9888
Thanks a lot! It works just fine now!
Thanks a lot!

It works just fine now!
1,519
Posted By ce9888
[SOLVED] Want to remove output from a command
Hi,

I'm on AIX 5.2. I wrote a script that makes a traceroute to a host. The script works fine but each time it using the traceroute command its generate the 2 output lines.

this is the command...
12,282
Posted By ce9888
Try this: cd /working_directory for...
Try this:


cd /working_directory
for filename in `ls`
do
new_filename=`echo $filename| tr "'" " "`
mv $filename $new_filename
done
1,383
Posted By ce9888
I didn't find anything otherwise I wouldn't ask....
I didn't find anything otherwise I wouldn't ask. I entered "User input appearing as *" in the search string and didn't get anything relevant result... any suggestion about the search string ? ;)
...
1,383
Posted By ce9888
User input appearing as *
Is there a way in a shell script to make an user input appears as * (like a password) ??
Forum: AIX 03-19-2009
26,049
Posted By ce9888
I forgot to mentionned that we have over 50 AIX...
I forgot to mentionned that we have over 50 AIX servers and almost all of them are showing this behavior...


I didn't use it to set the gateway, just to check what it was set to.


You are...
Forum: AIX 03-18-2009
26,049
Posted By ce9888
When I "smitty tcpip", "minimum configuration",...
When I "smitty tcpip", "minimum configuration", en0 or en1. I can see the default gateway address in that screen and it's the same address for both NIC cards.



There is no "route add" with the...
Forum: AIX 03-18-2009
26,049
Posted By ce9888
Returns nothing: # odmget -q...
Returns nothing:


# odmget -q attribute=route CuAt
#





I checked :


# cd /etc
# for file in `find . -type f`
> do
> grep "route" $file | grep -v "^#"
> done
Forum: AIX 03-18-2009
26,049
Posted By ce9888
2 default gateways
I have a bunch of servers on AIX, we have at least 2 NIC cards in each of them.

We upgraded them from AIX 4.2 to AIX 5.2. Since then when we reboot a server its always coming up with 2 default...
1,774
Posted By ce9888
If you dont want an external file you can do this...
If you dont want an external file you can do this like that :



find /path -name filename -type f >/dev/null
if [ $? -ne 0 ]; then
echo "File not found"
else
i=1
for file in `find...
1,774
Posted By ce9888
You can try something like this : find...
You can try something like this :


find /path -name filename -type f > /tmp/list
if [ $? -ne 0 ]; then
echo "File not found"
else
echo "Number of occurence of filename : \c"
cat...
2,376
Posted By ce9888
You can start with something like this. Of...
You can start with something like this.

Of course this script need to be run with sudo or under root


#!/bin/ksh

MAXSIZE=50
USERID_BOUNDARY=1000 # normaly regular userid start at a certain...
2,781
Posted By ce9888
Try this sed -e "s/./A/4" -e "s/./B/5"...
Try this


sed -e "s/./A/4" -e "s/./B/5" input_file
17,558
Posted By ce9888
You should read it more like this [0-9]*...
You should read it more like this

[0-9]* means any occurence of numbers
$ means from the end

So [0-9]*$ means any occurence of numbers from the end (in other words any trailing...
Forum: Solaris 03-06-2009
4,161
Posted By ce9888
mv doesn't change ownership. sed...
mv doesn't change ownership.


sed 's/10.117.18.70/10.117.18.73/g' $fl.old > $fl


It's when you creating the new file. Just run the script as the current owner of the file.

Or you can...
8,945
Posted By ce9888
Logicaly you are right how can you explain this :...
Logicaly you are right how can you explain this :


ce9888$ ps -ef | grep -i fiha
user 37558 1 0 08:50:57 - 0:00 /home/s/sys/fiha
ce9888 ...
8,945
Posted By ce9888
ps -ef | grep $process_name | grep -v "grep" >...
ps -ef | grep $process_name | grep -v "grep" > /dev/null


Since I'm testing the exit code of the command ($?) I don't really need the output so I send it to /dev/null which is a kind of garbage...
Forum: Solaris 03-06-2009
4,161
Posted By ce9888
This should do the trick #!/bin/bash ...
This should do the trick


#!/bin/bash
for fl in `find . -type f` ; do

mv $fl $fl.old
sed 's/10.117.18.70/10.117.18.73/g' $fl.old > $fl
rm -f $fl.old
done
8,945
Posted By ce9888
Do you want another way to test if the process is...
Do you want another way to test if the process is running ?

Try this:


ps -ef | grep $process_name | grep -v "grep" > /dev/null
if [ $? -eq 0 ]
then
echo "$process_name is Running "...
Showing results 1 to 25 of 104

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