Search Results

Search: Posts Made By: horhif
904
Posted By horhif
Email from a Perl Script....?
Hi,

how do i send an email from a Perl script?

i.e. what is Perl's equivalent to mailx?

i have my script working where it prints out an error to a screen, but instead i'd like it sent to...
5,812
Posted By horhif
Output of find command to variable?
Hi,

I'd like to assign the output of the find command to a variable.

What I need is to run the find command, and if it returns zero files, the program exits.

so i'm trying to assign the...
1,089
Posted By horhif
Assigning Variable to Line Numer in nl
hi,

i'm creating a little menu for some users.

i'm running the command:


du -a /apps | sort -n -r | head -n 10 | nl
i then get the top 10 files by size in the /apps directory

the...
1,323
Posted By horhif
Finding new file, but excluding directory..
hi,

I need to find files that have been created less than 3 days ago. However, I need to only search specific directories.

I've searched about the net and found some useful commands such as : ...
2,759
Posted By horhif
that did it, thanks very much guys!
that did it, thanks very much guys!
2,759
Posted By horhif
this seems to output the compression to screen,...
this seems to output the compression to screen, and doesn't send it to the file.

thanks
2,759
Posted By horhif
Xargs or Find with output to a file [SOLVED]
Hi,

I've got to setup a script that will run daily, and find a log file of a certain age, and then compress and transfer this file to a new location.

so far i've been able to specify the file i...
16,684
Posted By horhif
sorry maybe my echo statement was the best...
sorry maybe my echo statement was the best example.


if [ -s file_log1 ]
then
mailx -r server@myworld.com -s "Error found $HOSTNAME, \
Engine 1, please investigate" my_email@what.com <...
16,684
Posted By horhif
so if you'd a long line, how would you format it?...
so if you'd a long line, how would you format it?

i.e.


if [something true etc]
then
echo "blah blah blah blah blah blah blah blah blah blah blah blah blahblahblah blah blah
...
16,684
Posted By horhif
Formatting from Notepad++ to Vi
Hi,

just quick question, I currently type up my scripts in Notepad++ and then copy them into my file (in VI).

However, i've noticed that all the lines get messed up and it becomes difficult to...
Forum: Solaris 09-19-2012
1,149
Posted By horhif
hi this doesnt seem to work for me. also i...
hi this doesnt seem to work for me. also i cannot use the 'q' in grep.

thanks anyhow
Forum: Solaris 09-18-2012
1,149
Posted By horhif
Problem with log file script
Hi,

I have a log file that i'd like to monitor for a string. Now the log file rolls over everytime the server is restarted, so i'm doing a reverse list and then reading the latest log file.

So...
Forum: Solaris 09-04-2012
2,269
Posted By horhif
thanks
thanks
Forum: Solaris 08-28-2012
2,269
Posted By horhif
Monitoring log file for entries - Find command & sorting
hi,

I would like to monitor a log file, which rolls over, everytime a server is restarted.

I would like to grep for a string, and to be more efficient i'd like to grep only newly appended...
5,276
Posted By horhif
that did it for me! thanks very much everyone! :)
that did it for me! thanks very much everyone! :)
5,276
Posted By horhif
no, sorry i left out the names of the servers...
no, sorry i left out the names of the servers trying to help.

hostnames_here would be the server names i.e. server1 server2 server3 etc..

---------- Post updated at 06:49 AM ----------...
5,276
Posted By horhif
[Solved] For Loop with 2 commands? (hostname prob)
Hi

I would like to ssh into serveral servers, print the hostname and do an ls (of files in a certain directory), and add these details to a file.

so i have this:

#!/usr/bin/bash

for host...
12,643
Posted By horhif
thanks
hi thanks for your help.

that seemed to do the trick! thanks very much!
12,643
Posted By horhif
ok...
excuse my ignorance, i'm a newbie to Unix.

i'm using Solaris

the output of the log files are:

May 19 20:34:33 server_name Process: Error_message_timed_outI can grep out the month and day. ...
12,643
Posted By horhif
Grep out only today's date
Hi,

I have some log files. I've been asked to grep out error messages that have happened ONLY today. (However, the logs keep messages a long time so they have error messages going back weeks)
...
8,833
Posted By horhif
thank worked a treat! thank you very much!!
thank worked a treat! thank you very much!!
8,833
Posted By horhif
Script to find string & email
Hi

I have a query that some of you may be able to help me with if poss? I'd appreciate it very much.

I've got a few log files, that I would like to search for a string. When the string is...
Forum: Advertise with Us 03-10-2010
2,062
Posted By horhif
Windows to Unix Admin
Hi,

I'm looking a bit of advice on a job offer I've been made.

I'm currently a Microsoft Windows Administrator, with good experience in this and also in Novell.

I've just been offered a...
Showing results 1 to 23 of 23

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