Search Results

Search: Posts Made By: gefa
Forum: AIX 11-26-2013
1,204
Posted By gefa
Backup and restore query
I have some old directories and files that I which to archive off. I have created archive using -p option with /usr/sbin/backup to a file. If I then do a du -g on the original directory and the...
Forum: AIX 11-11-2013
14,372
Posted By gefa
Hi sorry should have given more info at the...
Hi sorry should have given more info at the start,

The master IP is 10.17.4.12 GW 10.17.4.204 255.255.254.0
New client IP is 193.3.6.87 GW 193.3.6.200 255.255.255.0
Forum: AIX 11-08-2013
14,372
Posted By gefa
Thanks for the info, what do you mean by (sorry...
Thanks for the info, what do you mean by (sorry I'm fairly new to nim)

do you mean on the client host 193... and if so where is the GATEWAY IP address in smitty nim?

the error I get by the way...
Forum: AIX 11-08-2013
14,372
Posted By gefa
Nim client with different subnet to Master
Iam attempting to add a client to NIM however the new client has a different subnet than master 10... & 193... , I've established from redbooks that it should be possible but can't find anything that...
10,925
Posted By gefa
Thanks gacanepa, this is ideal. for some reason...
Thanks gacanepa, this is ideal. for some reason it didn't like the print stat ('$list') so I I copied $list into a file and referenced the file instead of variable and it worked strangely:confused:
10,925
Posted By gefa
At the moment sftp is not stup on the remote host...
At the moment sftp is not stup on the remote host so ftp would be best at this stage.

operataing system is Aix6.1

Thanks in advance!
10,925
Posted By gefa
Ftp get files created in last 30 minutes
Is it possible in an ftp script to get remote files based on whether they have been created in the last 30 minutes?
3,848
Posted By gefa
yes that works, thanks!
yes that works, thanks!
3,848
Posted By gefa
Grep or print each section of a file on one line with a separator
I can obtain information from itdt inventory command however it display as below, I'd like to print each entity on one line but seperated by :

the file is something like and each section ends with...
32,498
Posted By gefa
Thanks for the replies thus far, what I should...
Thanks for the replies thus far, what I should have said is that I also need to select by date, so,

I would search (for example) for anything with date of 25/01/13,

then I'd want to print...
32,498
Posted By gefa
(awk?) print multiple lines on one line
I have a log file something like


------- report 1 -------
date 27/01/13
time 08:00
records 1234

------- report 2-------
date 27/01/13
time 08:00
records 1239

...

I'd like...
2,229
Posted By gefa
Yes both solutions work, many thanks for your...
Yes both solutions work, many thanks for your help and speedy resonse.:b:
2,229
Posted By gefa
thanks for the reply, unfortunately grep -A is...
thanks for the reply, unfortunately grep -A is recognised, I'm using AIX
2,229
Posted By gefa
read lines between search pattern
I have a file split something like

01/11/2010:
No of users 100

02/11/2010:
No of users 102

03/11/2010:
No of users 99

...

I want to search the file for a particular date and then...
3,210
Posted By gefa
Many thanks for all your help.
Many thanks for all your help.
3,210
Posted By gefa
Hi thanks again, the file will be something...
Hi thanks again,

the file will be something like as the text will be surrounded by quotes;

1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,"1-this is a test",20...
3,210
Posted By gefa
Thanks for the info, is it possible do do...
Thanks for the info, is it possible do do something like the following awk statement in perl as a one liner?
to split and populate the variable $acmodel with contents of field 19 which has more...
3,210
Posted By gefa
Many thanks for that. Just another question...
Many thanks for that.

Just another question how is possible to split a field within perl

for example in a file I might have something like these fields seperated by a space;

this is a test...
3,210
Posted By gefa
Perl - CAPTURE query
When i run script with option 1 it works, however if I assign path to variable $tmpfile and try to use that it writes to $tmpfile and not /var/tmp/abc.tmp, what am I missing?

1.
open (CAPTURE,...
9,472
Posted By gefa
Thanks managed to find the issue, AIX 6 requires...
Thanks managed to find the issue, AIX 6 requires 'Defaults !env_reset' adding to sudoers.
9,472
Posted By gefa
sudo & chdev
I have an error when using chdev with sudo as follows;

sudo chdev -l rmt0 -a block_size=512
chdev: 0514-518 Cannot access the CuDv object class in the device
configuration database.
...
1,752
Posted By gefa
Losing zero in while read
I'm using a while read statement to read in lines from a file, if a value (for example) is 1000.10 in a field, the last zero is removed leaving 1000.1 does anyone know a way to keep the field as it...
7,704
Posted By gefa
using variables in case statement
is it possible to call a variable in a case statement, for example

lsmonth=Jan|Feb
l |while read ans
do
mymonth=`echo $ans |awk '{print $6}'`
case $mymonth in
$lsmonth) echo do...
6,201
Posted By gefa
Thanks very much, works a treat!
Thanks very much, works a treat!
6,201
Posted By gefa
running command in while loop
I have a script that users a while read, whithin this I want to execute the cp -i command on some of the results, however because it is in a loop it skips the -i part of cp. How do I get the loop to...
Showing results 1 to 25 of 94

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