Search Results

Search: Posts Made By: solfreak
Forum: Programming 06-22-2007
2,239
Posted By solfreak
20070623 - 20070622
20070623 - 20070622
Forum: Linux 06-19-2007
9,168
Posted By solfreak
Get you NIC MAC address using either ifconfig or...
Get you NIC MAC address using either ifconfig or arp command. Then look it up here:
http://coffer.com/mac_find/
186,129
Posted By solfreak
Found the answer: ESC - = and made the switch...
Found the answer: ESC - =
and made the switch to ksh93 (from tcsh) :)
3,371
Posted By solfreak
When you send the binary output of gzip (a lot of...
When you send the binary output of gzip (a lot of unprintable chars and some terminal control commands) to stdout the terminal beeps in protest.

Try: gzip -cvf9 backup15072007.tar.gz >...
Forum: Solaris 06-16-2007
12,223
Posted By solfreak
From ufsrestore(1M):
From ufsrestore(1M):
5,717
Posted By solfreak
hdixon, Both the diff's are correct -- if...
hdixon,

Both the diff's are correct -- if you apply the editing commands (ed) in the diff to the 2nd file it will produce the first file.
7,570
Posted By solfreak
No, please see the edit I made to the post.
No, please see the edit I made to the post.
7,570
Posted By solfreak
sed -i.bak 's/\(.*\)/"\1"/' input_file If...
sed -i.bak 's/\(.*\)/"\1"/' input_file

If you want a newline at the end of the output file:
awk '{printf"\"%s\" ",$0}END{print}' input_file > output_file
40,450
Posted By solfreak
Try: echo Y | script
Try:

echo Y | script
Forum: Solaris 06-13-2007
15,519
Posted By solfreak
iostat -En will show the cdrom device file. ...
iostat -En will show the cdrom device file.

On Solaris 10 the vold daemon automatically mounts a cdrom (uses /vol/dev/dsk/cXtYdZ/CDLABEL ) when inserted. Look in /cdrom there should be directory...
3,533
Posted By solfreak
Type the command "tty" on your terminal and use...
Type the command "tty" on your terminal and use that output in your crontab. For example if you got /dev/pts/4 then change your crontab entry to:

* * * * * /usr/bin/date > /dev/pts/4
...
5,015
Posted By solfreak
For tcsh, it's ~/.logout
For tcsh, it's ~/.logout
44,821
Posted By solfreak
komputersman, I found this sticky on this...
komputersman,

I found this sticky on this forum, think you might find it useful:
http://unix.com/showthread.php?t=25840
44,821
Posted By solfreak
Well, there is growfs(1M) but whether you can use...
Well, there is growfs(1M) but whether you can use it or not depends on your disk layout. Actually, I don't know if growfs is even available on Solaris 8 :)
44,821
Posted By solfreak
du -k -a | sort -n Or find . -type f |...
du -k -a | sort -n

Or

find . -type f | xargs du -k | sort -n
2,201
Posted By solfreak
Kharen, Ok, this should work: #!/bin/sh ...
Kharen,

Ok, this should work:
#!/bin/sh

while read line ; do
[ -z "`echo $line | awk '{print $3}'`" ] && continue
[ -z "`echo $line | tr ' ' '\n' | uniq -d`" ] && echo $line...
2,201
Posted By solfreak
#!/bin/sh while read line ; do [...
#!/bin/sh

while read line ; do
[ -z `echo $line | awk '{print $3}'` ] && continue
[ -z `echo $line | tr ' ' '\n' | uniq -d` ] && echo $line | awk '{print $1}'
done < "$1"
Run...
Forum: Solaris 06-12-2007
16,338
Posted By solfreak
Before doing chmod try: # svcadm disable -t...
Before doing chmod try:

# svcadm disable -t autofs
Forum: Programming 06-12-2007
9,627
Posted By solfreak
Got it. Thanks!
Got it. Thanks!
28,741
Posted By solfreak
Does it show the filename in the error message or...
Does it show the filename in the error message or just "<filename>" ?
28,113
Posted By solfreak
Space is one of the default input field...
Space is one of the default input field seperators.
So, if you just use $fname then that's 2 arguments for test and hence doesn't work.
"$fname" is just 1 argument.
Forum: AIX 06-12-2007
8,059
Posted By solfreak
Depending on how df print's the output on your...
Depending on how df print's the output on your system you might need to modify this:

#!/bin/sh

if [ `df -k $1 | awk '{getline; print $4}'` -ge `expr 5 \* 1024 \* 1024` ] ; then
echo...
12,808
Posted By solfreak
Just guessing, give this a try: tr '\r' '\n' <...
Just guessing, give this a try:
tr '\r' '\n' < TL000110.IP.OUT | sed '/0000000000000016000A/d' > new.OUT
Forum: Programming 06-12-2007
9,627
Posted By solfreak
porter, thank it's clear now except for one...
porter, thank it's clear now except for one thing:
Why doesn't "\001\000\000\000" get stored as a string like { '\', '0', '0', '1', '\', '0', '0', '0', '\' ..... '\0' } is it because "\001" is...
Forum: Programming 06-12-2007
9,627
Posted By solfreak
Hi Porter, Can you please explain how this...
Hi Porter,

Can you please explain how this works:

short s=*(const short *)"\001\000\000\000";
Showing results 1 to 25 of 33

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