Search Results

Search: Posts Made By: fimblo
Forum: IP Networking 02-06-2009
2,480
Posted By fimblo
or ssh remotemachine.domain.com who
or

ssh remotemachine.domain.com who
Forum: IP Networking 02-06-2009
3,627
Posted By fimblo
um. this is a unix forum. dont you think it might...
um. this is a unix forum. dont you think it might be better to ask windows people about this issue?
11,352
Posted By fimblo
I had some similar code at home, heres a slightly...
I had some similar code at home, heres a slightly modified version for you.

Note that there are two reset functions included, depending on if you will ssh or telnet. And you'll prolly need to read...
5,764
Posted By fimblo
This wont work because of scope issues. The array...
This wont work because of scope issues. The array $arr[..] is declared in the shell, so it has to be interpreted by the shell. When you try to send it into sqsh's STDIN it won't be able to expand it...
4,779
Posted By fimblo
Even if you don't have a pretty version of ps...
Even if you don't have a pretty version of ps (with -forest flag), nor
the ptree app, you can still get the parent pid from a process when
you run a ps -ef.

You should be able to find your...
371,623
Posted By fimblo
wow, thanx :)
wow, thanx :)
5,966
Posted By fimblo
can you be a bit more specific? what do you mean...
can you be a bit more specific? what do you mean by login page? Are you coding a web CGI in perl?
Forum: IP Networking 09-23-2008
6,045
Posted By fimblo
Are you listening on 224.0.0.5? or 224.0.0.6? ...
Are you listening on 224.0.0.5? or 224.0.0.6?
If the IP next-header field set correctly? (89)

Just some wild stabs in the dark :)

/Fimblo
Forum: IP Networking 09-23-2008
6,045
Posted By fimblo
What happens when you send yourself a hello...
What happens when you send yourself a hello packet? Have you tried sending a HELLO packet from another client? (zebra, cisco, etc).
Forum: Linux 09-23-2008
4
ftp
2,710
Posted By fimblo
Have you read the RFC yet? Its quite well...
Have you read the RFC yet? Its quite well written:
http://www.ietf.org/rfc/rfc0959.txt

It will tell you exactly how to implement FTP. I wrote a client using this document when I was a student :)
6,545
Posted By fimblo
sure. The following script will dump all stdout...
sure. The following script will dump all stdout (and stderr) to file /foo/bar/baz.log till the script ends.

#!/bin/bash
exec > /foo/bar/baz.log 2>&1
echo blahonga
exit

To dump only stdout,...
5,707
Posted By fimblo
You can do this without having to do the sudo...
You can do this without having to do the sudo bit, it can be a bit tricky and the man page is a pain to read...

Instead, create some ssh-keys for your user on xyz1. copy the public key to the...
5,132
Posted By fimblo
Im guessing that you actually want to install...
Im guessing that you actually want to install some kind of monitor, if thats what you want, you could try nagios (easy to install on linux) or hoBBit (smaller and simpler, but very good).

good...
10,732
Posted By fimblo
Another way of doing this would be: # Assume...
Another way of doing this would be:

# Assume file with paths to files are in file /tmp/somefiles
for filename in $(cat /tmp/somefiles) ; do
mkdir -p $(dirname $filename)
done

This should...
1,739
Posted By fimblo
Building on shamrock's answer, you could merge...
Building on shamrock's answer, you could merge this into one line if you're running bash:

comm -12 <(sort file_a) <(sort file_b)

The <( ) construct creates a temporary file out of the output...
1,311
Posted By fimblo
Well, afaik there are two ways of fixing this: ...
Well, afaik there are two ways of fixing this:
1) Write another implementation of tail, which take regexps and hook functions to run when the regexps are matched.

I was lazy and went with
2)...
5,861
Posted By fimblo
On modern Solaris (10) and many linuces you can...
On modern Solaris (10) and many linuces you can use the command usermod, quite useful.

usermod -d /path/to/new/home target_username

/fimblo
4,953
Posted By fimblo
If you're in ksh or bash, you can add stuff using...
If you're in ksh or bash, you can add stuff using $(( )) operator:

i=1
echo $(( $i + 1 ))

Nice thing with this construction is that you can nest the math:

a=1
b=10
echo $(( $a + $(( $b +...
371,623
Posted By fimblo
Very interested to hear fpmurphy's explanation on...
Very interested to hear fpmurphy's explanation on how to change target of symlink without deleting the symlink first.

I normally delete the symlink and re-create it on one line, minimizing the...
13,822
Posted By fimblo
so how do you differ between the 'good' blank...
so how do you differ between the 'good' blank lines, which you want to keep, and the 'bad' ones, which you want removed?
2,109
Posted By fimblo
alternatively: ls -tr1| grep -A2...
alternatively:
ls -tr1| grep -A2 SRSCLAR.IN12345
if you have a grep command which supports the -A flag (gnu grep does).
29,416
Posted By fimblo
If I remember correctly older versions of bash...
If I remember correctly older versions of bash doesnt support reading a file and redirecting output to the same on the same command line. I use version 2.xxx at work and it doesnt work there.

On...
12,019
Posted By fimblo
how bout this: for file in $(find . -type f...
how bout this:

for file in $(find . -type f -iname '*.img'); do
mv $file ${file/img/iso}
done

This doesnt take filenames nor directories with whitespaces in them, to adapt the above to...
Forum: What is on Your Mind? 02-15-2008
40,523
Posted By fimblo
three laptops, one fileserver, one stationary,...
three laptops, one fileserver, one stationary, and my mythbox.
16,854
Posted By fimblo
place the stuff you want done in the background...
place the stuff you want done in the background inside parens, and add the ampersand at the end of the block, like so:

date
echo "Enter location"
LOCATION=
read LOCATION
(
sleep 3
date
) &
Showing results 1 to 25 of 30

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