Search Results

Search: Posts Made By: solfreak
Forum: Programming 06-22-2007
2,246
Posted By solfreak
20070623 - 20070622
20070623 - 20070622
Forum: Linux 06-19-2007
9,189
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/
190,718
Posted By solfreak
Found the answer: ESC - = and made the switch...
Found the answer: ESC - =
and made the switch to ksh93 (from tcsh) :)
3,383
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,256
Posted By solfreak
From ufsrestore(1M):
From ufsrestore(1M):
5,724
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,576
Posted By solfreak
No, please see the edit I made to the post.
No, please see the edit I made to the post.
7,576
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,484
Posted By solfreak
Try: echo Y | script
Try:

echo Y | script
Forum: Solaris 06-13-2007
15,551
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,539
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,023
Posted By solfreak
For tcsh, it's ~/.logout
For tcsh, it's ~/.logout
44,856
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,856
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,856
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,211
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,211
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,352
Posted By solfreak
Before doing chmod try: # svcadm disable -t...
Before doing chmod try:

# svcadm disable -t autofs
Forum: Programming 06-12-2007
9,759
Posted By solfreak
Got it. Thanks!
Got it. Thanks!
28,800
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,171
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,075
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,826
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,759
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,759
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 11:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy