• ALGEMENE VOORWAARDEN
  • GENERAL TERMS & CONDITIONS

KUDOS - IT consultant and FOSS supporter

  • home
  • contact
  • services
  • baanboard
  • msx
Home

Feed aggregator

Cannot award a posting with bits!

UNIX.com - Thu, 20/05/2010 - 23:27
Hi all,
I've just now wanted to award 1000 Bits to following posting and I noticed there is no "coin"/award button anymore :confused:
http://www.unix.com/302423330-post2.html

Regards,
pc

EDIT: I guess it's turned off since we now have this Thanks button?

Renumber column using Awk

UNIX.com - Thu, 20/05/2010 - 23:08
I have a data set similar to that below and I need to add a column $2 (which numbers the lines from 1- end)

Text Input Output x y z
Text Input Output x y z
Text Input Output x y z
Text Input Output x y z

I also need to have various column widths so $1 is 6 spaces $2 is 5, $3 is 5, $4 is 7. I have used awk '{print FNR "\t" $2}' and now have a tab delineated file (which is numbered). Can anyone help adjusting the output? I do not understand how to use the printf commands to specify column width.

Thank you for any assistance you are willing to share

Solaris 2.6 restore from tape

UNIX.com - Thu, 20/05/2010 - 22:31
Hope someone can help me here...
I've got to restore an E450 with 300MHz cpus which was running Solaris 2.6 from tape. Regrettably the boot drive has failed.
I've access to the first release of Solaris 2.6 CD's and to a set of Solaris 9 CD's.
I remember that different E450 CPUs needed different releases of the 2.6 media set in order to boot correctly.
The tape was written using ufsdump.
So, to my questions?
Will this E450 boot from the Solaris 2.6 CD?
If not, will booting from the Solaris 9 CD be able to ufsrestore and then installboot correctly?
According to the notes I have of the restore process, while booted from the CD I'd issue this command to install the boot block:
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0
but if I'm booted from a Solaris 9 CD would that result in a valid boot block for Solaris 2.6?
Many thanks for any and all assistance.

SCSI drive

UNIX.com - Thu, 20/05/2010 - 22:26
Hi i ahve a SCSI drive that it use to work but now is not working. The Sun machine can not read the drive. My question is there is any other way to get the data back from the SCSI drive? I think if i replace the chip board on teh SCSI drive it might help to just buy a new Board but there is any UNIX command to fix the hard drive like in windows we use CHKDSK /f/r
How can i extract the data out it a SCSI drive? doe smy question?
thank you

What's wrong with my script ....

UNIX.com - Thu, 20/05/2010 - 22:22
Please see below mentioned my script ... it ran once without any issue .... then after it is not coming out .... please suggest what is wrong?

Code: #!/bin/ksh
## if (( ${num_errors} > 0 ));
export ACULOG=/home/varshnes/input
export num_errors=10
**** Search for 'Start correcting roll up conflicts' ****
STRING=$(find $ACULOG -name "*" | xargs grep -i "Start" | grep -i "correcting" | wc -l)
echo $STRING
 if (( ${STRING} > 0 ));
 then
 echo -n "$num_errors "
 num_errors=`expr $num_errors - 1`
 fi
STRING=$(find $ACULOG -name "*" | xargs grep -i "End" | grep -i "correcting" | wc -l)
echo $STRING
 if (( ${STRING} > 0 ));
 then
 echo -n "$status "
 num_errors=`expr $num_errors - 1`
 fi
echo -n "$num_errors "
 if (( ${num_errors} > 0 ));
 then
 echo "SEND MAIL NOW"
 fi
exit 0

World Has Moved On

UNIX.com - Thu, 20/05/2010 - 22:15
2010-05-20T22:06:43+02:00

* See Joe McKendrick about CEOs, CFOs and SOAs.









Source...
  • « first
  • ‹ previous
  • …
  • 344
  • 345
  • 346
  • 347
  • 348
  • 349
  • 350
  • 351
  • 352
Syndicate content

Navigation

  • Glossary
  • Recent posts

Search

User login

  • Request new password

Recent comments

  • reply this post
    2 weeks 12 hours ago
  • answer
    2 weeks 4 days ago
  • On the same port
    14 weeks 3 days ago
  • All, with 2 daemons running
    17 weeks 5 days ago
  • /etc/init.d/sshd
    21 weeks 6 days ago
  • No easy way to do this
    22 weeks 8 hours ago
  • external iface is dhcpd addressed
    22 weeks 23 hours ago
  • Great
    24 weeks 2 days ago
  • Great!
    27 weeks 2 days ago
  • Thanks!
    29 weeks 9 hours ago

Use Free Software!

Visit the Free Software Directory

Baanboard.com

  • Porting set upgrade (Baan IVc4)
  • Compile Standard Scripts
  • Printing from LN to Excel printer makes column tpyes in excel as general
  • eliminate line feed at end of a text
  • good franchise lawyer
more

UNIX.com

  • Add route to solaris10
  • Help about identify the SP of my OS (Aix5.3)
  • passwd on a simple script
  • Wrapper Script Help With Perl Scripts
  • parsing data and incorporating it into another file
more

  • home
  • contact
  • services
  • baanboard
  • msx