Search Results

Search: Posts Made By: nhatch
2,497
Posted By nhatch
$0 not giving script name
Why does $0 return the word usage rather than the script name when used in a function?

Baffeled on this one, any help appreciated.



usage()
{
echo "$0 -cs <number of batches>\n"
echo...
2,362
Posted By nhatch
Test data creation
Hi,

I need to produce A LOT of test data for a testing environment I've been told to look after. Should have stayed at home this week

As it is for testing and probable sending to vendors I...
3,536
Posted By nhatch
That is great...perl option works fine. The...
That is great...perl option works fine.

The date through an error as it didn't recognise the --date option.


Thanks.
Neil
3,536
Posted By nhatch
Sorry, I think I should have been a little...
Sorry,

I think I should have been a little unclear.

I need to take a unixtime and make the conversion output different to standard

example output from perl gives this
perl -le 'print...
3,536
Posted By nhatch
unixtime to formatted date time
Hi,

I need to take the unix time and format it to a date/time string like this

yyyymmdd,hhmmss

I'm wrting in shell but have tried calling perl, but all the perl options I found on here puts...
2,182
Posted By nhatch
Totally amazing....that is the wonder on the...
Totally amazing....that is the wonder on the Internet (I wish i'd come up with that idea).


Thanks a load.....works a treat.


N
e
i
l
2,182
Posted By nhatch
merge same pattern lines together
Hi people...

I normally find with out any problem the solutions I need just by searching. But for this I'm not having any joy or jsut failing to adapt what I'ev found to work.


I have...
3,175
Posted By nhatch
getopts case statement failure
Hi,

I have a getopts that works fine if I provide an option but I want it to exit if nothing is given, but for some reason it drops out and continues with the script. Any ideas?



while...
9,749
Posted By nhatch
What is cmclconfd?
What is cmclconfd?

root 1392 1427 0 Feb 17 ? 00:00 cmclconfd -c


The HP-UX server I work on has over 3000 of them running as root. I'm guessing it is realeted to the data...
1,433
Posted By nhatch
DOS messaging question - related to UNIX process problem
Hi,

This is a strange request.

I know there is some sort of crude DOS tool that allows you to communicate to another PC either using its IP adress or PC name. But I can't remember where aor...
11,284
Posted By nhatch
ps command - time field
Hi all,

Can someone extending on what the time field is explaining in a ps command.

Man page only has this:
time The cumulative execution time for the process.

Is this a combined...
4,913
Posted By nhatch
monitoring running processes
I have a script that runs continuously and will deliver a file to multiple servers via scp. On occasions one of the scp's will hang and as a result not complete in sending the remaining files and...
115,212
Posted By nhatch
Another nce way is setting up a new variable (you...
Another nce way is setting up a new variable (you can adjust the number of hours by changng the +n value previous day is +24)

-bash-3.00$ NEWDATE=`TZ=GMT+2 date +%Y-%m-%d" "%H:%M:%S`
-bash-3.00$...
49,730
Posted By nhatch
Max numer of connections per sshd
Hi people,


How many ssh or scp connections will an sshd process allow to conenct?

I'm hoping this is an easy question.

Linux 2.6.16.21-0.8-smp x86_64 GNU/Linux

I have a Linux server...
1,586
Posted By nhatch
Easy....feel a bit stupid now. Cheers, ...
Easy....feel a bit stupid now.


Cheers,
Neil
1,586
Posted By nhatch
Trapping $! output
hey all,

I have a script that creates and then distributes html files via scp on a 60 second cycle. On occasions the scp will hang and not complete with the cycle.

When running the scp...
Forum: IP Networking 12-06-2007
6,114
Posted By nhatch
Hi, We now have a number of feeds that are...
Hi,

We now have a number of feeds that are being affected???? going to various OS types (Windows, SUN, HP) at various hosting sites.

I'm thinking that there may be a firewall issue on the...
Forum: IP Networking 12-06-2007
6,114
Posted By nhatch
ftp dir and pwd commands
Hi,

I have a conenction to remote server that I'm sending files too via FTP.

The problem I have is that when the file gets delivered it is 0 (zero) size.

I've manually connected and logged...
2,814
Posted By nhatch
:b: Good call, change all awk to nawk and...
:b:


Good call, change all awk to nawk and it returns as expected. I do wonder what the difference is :confused:.


Not that it makes any odds.

Cheers and beers,

Neil
134,006
Posted By nhatch
Hi, 1) I've never had a problem with the...
Hi,

1) I've never had a problem with the first of the month. Used this quiete a lot for reporting previous days work.

2) man date. This will give the options for date string formatting. But to...
2,814
Posted By nhatch
Thanks for the reply...I did try the awk method...
Thanks for the reply...I did try the awk method but got only error messages.

I'm still struggling but now get another issue that i can't figure out. I have suplied the full script I have written....
134,006
Posted By nhatch
If you are happy for the new (yesterday) date in...
If you are happy for the new (yesterday) date in a variable then try

$> YESTERDAY=`TZ=aaa24 date +%Y%m%d`
$> echo $YESTERDAY
20070729
$>
2,814
Posted By nhatch
awk completes early
Hi All.....

I have a text file with a good number of rows, example below. The script is to work out percent of failures. The problem I have is that the script exits after the first result is...
2,180
Posted By nhatch
You may need to ensure that x is allowed on both...
You may need to ensure that x is allowed on both sides. Also add a -X (not lower case) in your connection, this enables X forwarding.

ssh -X user@host
3,530
Posted By nhatch
recursive nice value
Hi all,

I have a running process that will spawn a large number of perl processes. How can I set that these all get spawned with a low priority nice value? I don't mind if all perl related...
Showing results 1 to 25 of 92

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