Search Results

Search: Posts Made By: Donkey25
27,580
Posted By Donkey25
Hi, I didn't have GNU date so I used...
Hi,

I didn't have GNU date so I used Pravin's perl solution. It works perfectly, many thanks!
27,580
Posted By Donkey25
Date One Week Ago From Given Date, Not From Current Date
Hi all,

I've used various scripts in the past to work out the date last week from the current date, however I now have a need to work out the date 1 week from a given date.

So for example, if I...
2,952
Posted By Donkey25
Solaris 10 missing static_routes file
Hi,

I have a solaris 10 system ( confirmed by the /etc/releases file and uname -a ).

But, I have no /etc/inet/static_routes file and if I try to add a persistent route with route -p add then it...
8,743
Posted By Donkey25
SFTP Jail With Sun SSH Not OpenSSH
Hi all,

I have a Solaris 10 server with SUN_SSH_1.1 installed.

I want to restrict a user via SFTP to only be able to access one directory. I've written a little script in .profile which works...
2,530
Posted By Donkey25
Selecting A Section of A File Based On the Time Within It
Hi,

I have a file formated like this:


John 7.22 2010-01-25_17:01:36
George 8.22 2010-01-25_17:02:36
Bob 9.62 2010-01-25_17:04:36
Jane 10.11 ...
3,750
Posted By Donkey25
Hi, Radoulov, I'm not quite sure how that...
Hi,

Radoulov, I'm not quite sure how that code works. I'm trying to modify it so I can also print the first values from File1 (you seem to have entered these into a hash and then use this hash to...
3,750
Posted By Donkey25
Hi, Thanks for your response. I can't...
Hi,

Thanks for your response.

I can't extract the first 2 characters of valuez as sometimes the value in the first field of the first file can be up to 4 digits long.

The 2nd file I'm...
3,750
Posted By Donkey25
Perl Array / pattern match large CPU usage
Hi,

I have one file in this format

20 value1
33 value2
56 value3

I have another file in this format:


34,30-SEP-09,57,100237775,33614510126,2,34...
8,988
Posted By Donkey25
Perfect, many thanks for your help
Perfect, many thanks for your help
8,988
Posted By Donkey25
Perl if field begins with.......
Hi,

This must be simple but I can't get it to work. I have the follow code to insert the contents of a file into an array and then I want to print the value of a container where all of the records...
3,250
Posted By Donkey25
Solaris10 rrdtool compile issues
Hi all,

I'm trying to install rrdtools on a sparc solaris10 system for use with Nagiosgraph. I inititially just added the rrdtools package from sunfreeware but this package doesn't include the...
3,288
Posted By Donkey25
Many thanks, I feel a bit stupid now!!!
Many thanks, I feel a bit stupid now!!!
3,288
Posted By Donkey25
Print to 2 files in awk if statement
Hi all,

I have some code like this


awk -F, '{
if ($1==3)
print $2 > "output_file"
print "1" > "new_file"
}' "input_file"


When I check output_file this has the correct values in it....
Forum: IP Networking 05-28-2009
5,172
Posted By Donkey25
Hosts file ignored, no DNS entry but still routes!!
Hi all,

I have an entry in my hosts file on a server called tractor as follows:

10.67.34.128 digger-m2m digger

I have a DNS server configured but it doesn't seem to know about digger. When I...
3,284
Posted By Donkey25
thanks for your response, I think I might have to...
thanks for your response, I think I might have to go for an option like that. As you say not nice but what can I do?! :-)
Forum: Solaris 05-15-2009
16,226
Posted By Donkey25
I've just had this - the SUNWhea package was...
I've just had this - the SUNWhea package was missing which contains the stdio_iso.h files and others that are needed for gcc
3,284
Posted By Donkey25
KSH script SQL timeout issue
Hi all,

I have a KSH script which is kicking off an sql scripts as follows:

/usr/local/installs/instantclient_10_2/sqlplus -s username/password @$sql_path/sql_query.sql >...
5,719
Posted By Donkey25
Thanks Pludi that's sorted it out nicely :)
Thanks Pludi that's sorted it out nicely :)
5,719
Posted By Donkey25
Many thanks for your response, point noted on the...
Many thanks for your response, point noted on the code tags, your post is much more readable than mine!!

How would I go about processing that file one line at a time rather than reading it all in...
5,719
Posted By Donkey25
Perl sum really inefficient!!
Hi all,

I have a file like the following:


ID,
2,Andrew,0,1,2,3,4,2,5,6,7,7,9,3,4,5,34,3,2,1,5,6,78,89,8,7,6.........................
10,746
Posted By Donkey25
Hi all, I've worked it out, this was...
Hi all,

I've worked it out, this was happening becuase the SUNWarc package was missing. I hope that helps somebody out if they come across the same problem.
10,746
Posted By Donkey25
GCC compiler Ld fatal error
Hi all

I'm trying to install sudo. When I first ran the sudo configure script it errored saying that I didn't have a C compiler. I have since installed the GCC 3.4.6 package for sol8 from sun...
14,384
Posted By Donkey25
Sorry, It's Solaris8. I'll have a look at the man...
Sorry, It's Solaris8. I'll have a look at the man pages for that.

Cheers!
14,384
Posted By Donkey25
Hi, Thanks. Yeah I could do that I'm just...
Hi,

Thanks. Yeah I could do that I'm just intreagued now as I can't find what's setting it and it's annoying me :-)
14,384
Posted By Donkey25
Hi, Many thanks for the response. The whole...
Hi,

Many thanks for the response. The whole of the /etc/profile file is below. I can't see it calling another script...

root@server1# more profile
#ident "@(#)profile 1.18 98/10/03 SMI"...
Showing results 1 to 25 of 41

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