Search Results

Search: Posts Made By: nj78
7,990
Posted By nj78
The 'script' command can be used for these...
The 'script' command can be used for these solutions (monitoring admin sessions), see ISBN:0-471-21821-9 "Mastering Unix Shell Scripting" chapter 19.
11,442
Posted By nj78
Sounds like you have a hash of: hostname IP ...
Sounds like you have a hash of:

hostname IP

parse out the hostname first, then run a loop for each one and then take action using the case statement.

Example:

for server_name in $hosts...
2,055
Posted By nj78
Hi moveaix, when reviewing this keep in mind that...
Hi moveaix, when reviewing this keep in mind that with the "" marks you can adjust the spaces or add chars:

date +"%b %d"
Mar 10

date +"%b date=> %d"
Mar date=> 10
11,442
Posted By nj78
Anytime.
Anytime.
11,442
Posted By nj78
Hi, quick and dirty to get you started, output...
Hi, quick and dirty to get you started, output is:

sh money 10.192.0.0
IP is 10.192.0.0
the second octet is 192


code:


#!/bin/bash


IP=$1;
OCT2=$(echo $1 |awk -F . '{print $2}')
...
2,521
Posted By nj78
Is it errored or "errored" in the...
Is it errored or "errored" in the "new_update_scripts.txt"?
75,415
Posted By nj78
That ssh check above should work fine, sftp and...
That ssh check above should work fine, sftp and ssh use same tunnell, see man page:

sftp is an interactive file transfer program, similar to ftp(1), which performs all operations over an encrypted...
Forum: Programming 12-02-2009
17,551
Posted By nj78
Page 45 of Unix Programming Environment has an...
Page 45 of Unix Programming Environment has an explanation of this.
5,719
Posted By nj78
Please try the second search result in google if...
Please try the second search result in google if you have not already. Search:
usr/lib/libX11.a(shr4.o
11,742
Posted By nj78
1. Use crontab to run every fifteen minutes, key...
1. Use crontab to run every fifteen minutes, key "man crontab" in shell.

2. This script may work <script.sh <your text to grep>:

#!/usr/bin/ksh

thelog="/your/local/logpath"
user=$1...
7,656
Posted By nj78
From man page: lserver Domain ...
From man page:

lserver Domain
Changes the default server to the value specified by the Domain parameter. The lserver subcommand uses the initial server to look up information about...
2,811
Posted By nj78
I would leave out the "head -1" unless you have...
I would leave out the "head -1" unless you have some parent loop or something like that.

Also perhaps add the -prune option so you are not viewing subdirs?
9,842
Posted By nj78
Looks like you have a | for the 1 in his example.
Looks like you have a | for the 1 in his example.
6,589
Posted By nj78
Can you run interactivly "sh -x" to see what's...
Can you run interactivly "sh -x" to see what's going on while running?
1,625
Posted By nj78
It's an operating system, like Windows, VMS,...
It's an operating system, like Windows, VMS, Amiga, GeoWorks.

Search all those in wikipedia to get an idea.
Forum: Fedora 07-13-2009
3,646
Posted By nj78
Maybe it's a config issue with the DB you are...
Maybe it's a config issue with the DB you are using?

See this link:

Question about connection java and Postgresql in Linux - bytes...
55,579
Posted By nj78
Go to gzip.org, thanks.
Go to gzip.org, thanks.
13,904
Posted By nj78
Do you have tcsh? You can edit .tcshrc and place...
Do you have tcsh? You can edit .tcshrc and place "set color" and "set colocat"
Google it.
3,631
Posted By nj78
Most problems with crons are filemode/permission...
Most problems with crons are filemode/permission problems, in my experience. Try to run the command yourself, as the user running the cron, etc.
Forum: Fedora 07-11-2009
3,646
Posted By nj78
You may want to put in the error you have. ...
You may want to put in the error you have.

Are you sure you may just need to make something executable?
3,753
Posted By nj78
Yeah, awk lets put in loop. This is one of those...
Yeah, awk lets put in loop. This is one of those times I like the x operator in Perl. Thanks.
1,867
Posted By nj78
Seems like some missing ; Other syntax errors...
Seems like some missing ;
Other syntax errors too, best bet is to "read up".
6,817
Posted By nj78
Maybe can check $LANG and if it's for UK then...
Maybe can check $LANG and if it's for UK then source your .cshrc that's set for that locale?
2,893
Posted By nj78
Thanks for this, interesting, never have had to...
Thanks for this, interesting, never have had to use this.
2,893
Posted By nj78
Maybe try to comment out the services? Not sure...
Maybe try to comment out the services? Not sure about the second part.
Showing results 1 to 25 of 110

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