Search Results

Search: Posts Made By: grumpf
Forum: Programming 10-24-2008
9,703
Posted By grumpf
read documentation for /sbin/hotplug and /sys...
read documentation for /sbin/hotplug and /sys pseudo-filesystem
Forum: Programming 10-24-2008
5,190
Posted By grumpf
you need something that speaks to a httpd, thy...
you need something that speaks to a httpd, thy libcurl
Forum: Programming 10-24-2008
14,204
Posted By grumpf
i did a lot of ftp programming with c. ftplib...
i did a lot of ftp programming with c. ftplib works fine for me.
threads are a pain in the ass just use fork() if you need to.
15,927
Posted By grumpf
summer_cherry has a nice solution but lacks...
summer_cherry has a nice solution but lacks readability.
just to prove there is more than one sulution

get the last 13 characters:
echo ".R1/new/sv902a.01.per" | rev | cut -b-13| rev

get the...
4,615
Posted By grumpf
it is long time ago when i was forced to use aix...
it is long time ago when i was forced to use aix .. bash has these days option -s that allows you to send you code from stdin. that can be used to keep you code on computer A while it is executed on...
2,852
Posted By grumpf
join is used to join lines that beginn with the...
join is used to join lines that beginn with the same tag a-d in your example. when you plan to glue
800 files line for line it may be better to write a small shell/awk/perl/you name it scipt that...
6,578
Posted By grumpf
this works for my: awk -F":" '/Segment/ {...
this works for my:

awk -F":" '/Segment/ { print $2}' file.txt
5.49secs
10.01secs
7.82secs
5.31secs

pure shell:

grep Segment file.txt | cut -d: -f2
1
1,250
Posted By grumpf
if ping works and you are not stopped by a...
if ping works and you are not stopped by a firewall you need a browser like firefox. i havge no clue what sun puts on the solaris system disc. but you should install yourself gcc and friends an start...
Forum: Programming 03-14-2008
2,696
Posted By grumpf
hi clueless, i am not sure if i understand your...
hi clueless,
i am not sure if i understand your question propperly but it seems that using a simple shell script will solve most of your questions in no time.
2,439
Posted By grumpf
hi vinayrao, i guess what this person...
hi vinayrao,

i guess what this person intended was to filter a log file for error messages.
To do this propperly you need to learn regular expressions (see google).

0. make a copy of a...
2,684
Posted By grumpf
hi vinayrao, 1. telnet is program to use the...
hi vinayrao,

1. telnet is program to use the telnet-service of a telnet-server. Under UNIX the server program is normaly called telnetd.

2. This service does not run on windows boxes normaly...
Forum: Linux 03-05-2008
29,485
Posted By grumpf
try sftp -v to where you get stuck. if...
try sftp -v to where you get stuck.

if possible setup an sftpd to check if it is a basic problem.

recompile sftp from source
Forum: Ubuntu 03-05-2008
37,621
Posted By grumpf
man locale
man locale
Forum: Linux 03-05-2008
3,034
Posted By grumpf
with sysinfo() you get an system overview. for...
with sysinfo() you get an system overview. for more details you need some ioctl() magic or take a look at the /proc system it depends what exactly you what.
24,424
Posted By grumpf
and ip address is something like 255.255.255.255....
and ip address is something like 255.255.255.255. and you what an RE for that ?

[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+ you may like to fine tune it a bit
15,993
Posted By grumpf
gzip is designed to compress files. The "problem"...
gzip is designed to compress files. The "problem" here is that everything on a unix filesystem is a "file" including a directory. the content of a "directory file" are the underlying files. That is...
2,919
Posted By grumpf
strait from the bash man page: When ...
strait from the bash man page:

When a login shell exits, bash reads and executes commands from the
file ~/.bash_logout, if it exists.


other shells have similar mechanism.
5,643
Posted By grumpf
i understand you basic idea is to use ssh do a...
i understand you basic idea is to use ssh do a dummy connect to figure out if an sshd is running on the other side ?

why do you not use nmap ? it simply cheks if there is a service available,
Forum: Linux 02-21-2008
7,876
Posted By grumpf
1, shmat() is deprecated SYSV legacy use...
1, shmat() is deprecated SYSV legacy use shm_open()

2. shmat() is done by the kernel itself fill a bugreport for the linux kernel mailing list if you thing it is not your program that causes the...
Forum: SuSE 02-21-2008
8,166
Posted By grumpf
wtmp/utmp are written by "login" (see man login...
wtmp/utmp are written by "login" (see man login for detail). I am not aware that there is a way to disable this since it is a security issue (read: you need a realy good explaination if you want to...
Forum: Programming 02-21-2008
3,245
Posted By grumpf
hi, make file are processed from line 1 and the...
hi,
make file are processed from line 1 and the first lines of you file are variables (ok) but then a role
and soon this role is processed it stops.

All you need is in the begining

myprg:...
4,637
Posted By grumpf
hi melanie, i guess your problem is that you...
hi melanie,

i guess your problem is that you want to make sure that your script is always running and you use the crontab to check if it does ?

As usual there is more that one way. If you need...
16,938
Posted By grumpf
i understand you question as follows: file1 ...
i understand you question as follows:
file1 file2
a b c d ----> a a b c d
a b c d ----> a a b c d
...
solution
awk '{ print $1" "$1" "$2" "$3" "$4 }' <file1 >file2
3,225
Posted By grumpf
sounds like a job for sed: hint: sed -e...
sounds like a job for sed:
hint:

sed -e '$d' = delete last line

sed -e '$!d' = delete everything except the last line
Forum: Programming 02-04-2008
6,931
Posted By grumpf
First you need to understand the art gfx...
First you need to understand the art gfx programming with UNIX -- see: X11 it is much more advanced and offers so much more

You can start taking a look at GTK or QT Toolskitsb ut that environment...
Showing results 1 to 25 of 100

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