Search Results

Search: Posts Made By: lodey
Forum: HP-UX 02-25-2010
3,415
Posted By lodey
I use elm and use the following way to send an...
I use elm and use the following way to send an email to multiple addresses:

elm -s "File Changed" $(</users/lodey/logs/pelist.txt)

The email addresses are contained in the text file

The...
Forum: HP-UX 02-25-2010
2,446
Posted By lodey
Compare 2 systems to find any differences
Hi there,

I have 2 machines running HP-UX. One off these controllers is able to send mail and the other cannot. I have looked at all the settings that I know and coannot find any differences. Is...
7,773
Posted By lodey
Sendmail not working anymore after resolv.conf change
Hi there,
I am having a small issue with the mail function on our controllers. Recently we set up all the boxes as NFS slave servers and mail sending was not affected. We then had to change the...
Forum: HP-UX 03-14-2009
9,827
Posted By lodey
Create a user Specfic CRON
Hi there,
I have a small script that I need to run every hour and would like to schedule this a a cron job. I have tried running it in root but due to elm not being setup and file permissions it...
10,688
Posted By lodey
Thanks for the reply. That looks exactly what I...
Thanks for the reply. That looks exactly what I needed.

Rgds

colin
10,688
Posted By lodey
Folder Watch
Hi there,

I was wondering if there was a way in UNIX that I could set up a running script that monitors a certain folder (and all the folders and files contained within it) so that if any file...
15,790
Posted By lodey
I think that I have it sorted now. code is...
I think that I have it sorted now.

code is as follows:

#!/usr/bin/perl -w

use strict;
my $csvfile = 'probecards.csv';
my $newfile = 'new.csv';
my $fieldnames = 1;
open (IN, "<$csvfile")...
15,790
Posted By lodey
Hi era, I removed the sort from the code and...
Hi era,

I removed the sort from the code and ran the script. Now what happens is that when it has been ran the number of duplicates are now zero...the complete opposite to what was happening...
15,790
Posted By lodey
I have put the split in as a while loop...but it...
I have put the split in as a while loop...but it still doesnt work...I have done this correctly?


#!/usr/bin/perl -w

use strict;
my $csvfile = 'probecards.csv';
my $newfile = 'new.csv';
my...
15,790
Posted By lodey
thanks for ur help....sorry for annoying u with...
thanks for ur help....sorry for annoying u with my questions
15,790
Posted By lodey
sorry to be annoying but how does the following...
sorry to be annoying but how does the following perl code work?
perl -naF"\t" -e 'print (join ("\t", map { $F[$_] } (2, 3, 6)), "\n")'

If i inputed into my code would the { $F[$_] } part need to...
15,790
Posted By lodey
Where would I put the line in the code?
Where would I put the line in the code?
15,790
Posted By lodey
CSV File parse help in Perl
Folks,

I have a bit of an issue trying to obtain some data from a csv file using PERL. I can sort the file and remove any duplicates leaving only 4 or 5 rows containing data. My problem is that...
4,144
Posted By lodey
hey there, I kept looking at the script and...
hey there,

I kept looking at the script and I have found the problem with it:

I never put in the looping construct to scan through all the sub-directories in the main directory...doh!!
...
4,144
Posted By lodey
I had put in the round bracket and made the...
I had put in the round bracket and made the change to the script as you suggested. The info that i get from the echo command is dir = "//" so it looks like the variable dir is empty. I tried this...
4,144
Posted By lodey
I traced the scripty and also looked at the dir...
I traced the scripty and also looked at the dir which i wanted to copy the backups to and they all contain the files that I need to copy. I know that i am going to the eol dir as the pwd command...
4,144
Posted By lodey
Hey there, I am still having an issue with...
Hey there,

I am still having an issue with the script. I get the following error messages:

cp: cannot access /.prb: No such file or directory
cp: cannot create /.prb: Permission denied

Is...
4,144
Posted By lodey
Thank for that...I owe u one
Thank for that...I owe u one
4,144
Posted By lodey
Ignore diriectories within a script
Hi there,
I have a small issue with a script that I am running. I need it to ignore certain dir when copying over files. Ie the code is pointing towards the dir etest but I need to ignore the dirs...
3,626
Posted By lodey
Using the command above is it possible to show...
Using the command above is it possible to show what host last accesssed the file?
3,626
Posted By lodey
Problems with find command
Folks,

I have been searching a dir for specfic files that have been accessed within a certain timeframe. The issue that I am having is that it picks up the .snapshot dir as well.

I am using the...
4,064
Posted By lodey
Create Summary file containg information
Folks,

I have multiple files in a folder containing some information (there is around 100 of them). What I would like to do would be able to import some of the information into a summary text file...
14,356
Posted By lodey
Thanks...it works :)
Thanks...it works :)
14,356
Posted By lodey
All the directories are in the smae path ie: ...
All the directories are in the smae path ie:

/users/clyons/probes/

One other question (the script above works and thanks for it :) )

The s25e3.prb file is also contaained within this dir...
14,356
Posted By lodey
There is 97 dirs that I need to copy and rename...
There is 97 dirs that I need to copy and rename the file to. This is why I would like to try and automate the process as much as possible. Is there a way to use the code submitted above but to...
Showing results 1 to 25 of 30

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