Search Results

Search: Posts Made By: solfreak
Forum: Programming 06-22-2007
2,235
Posted By solfreak
20070623 - 20070622
20070623 - 20070622
Forum: Linux 06-19-2007
9,151
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/
179,777
Posted By solfreak
Found the answer: ESC - = and made the switch...
Found the answer: ESC - =
and made the switch to ksh93 (from tcsh) :)
3,359
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,194
Posted By solfreak
From ufsrestore(1M):
From ufsrestore(1M):
5,710
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,559
Posted By solfreak
No, please see the edit I made to the post.
No, please see the edit I made to the post.
7,559
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,396
Posted By solfreak
Try: echo Y | script
Try:

echo Y | script
Forum: Solaris 06-13-2007
15,480
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,506
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,005
Posted By solfreak
For tcsh, it's ~/.logout
For tcsh, it's ~/.logout
44,762
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,762
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,762
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,185
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,185
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,301
Posted By solfreak
Before doing chmod try: # svcadm disable -t...
Before doing chmod try:

# svcadm disable -t autofs
Forum: Programming 06-12-2007
9,522
Posted By solfreak
Got it. Thanks!
Got it. Thanks!
28,670
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>" ?
27,987
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,047
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,767
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,522
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,522
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 12:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy