Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: zag
  • Order by date
  1. zag

    Ontape command

    ok good. are you saying your /var/tmp/mytape.pipe file is corrupted?is it still a zero length pipe? if not, you need to recreate it before you start the restore: rm -f /var/tmp/mytape.pipe mknod /var/tmp/mytape.pipe p and is TAPEDEV still set to /var/tmp/mytape.pipe? onstat...
  2. zag

    Ontape command

    hi - you did shutdown the server 1st, didn't you?
  3. zag

    help! - ontape restores failing

    have never used: TAPESIZE 0 it might seem obvious, but you could try changing it to something like TAPESIZE 4000000 #(i.e. 4gb) which is what we used to get over a similar problem...
  4. zag

    Ontape command

    hi - simple, you do a similar thing in reverse... uncompress -c /var/tmp/mytapebackup.Z > /var/tmp/mytape.pipe & nothing will happen until you start reading from the mytape.pipe file, i.e. until you kick off your ontape -r command. you can always run onstat -D -r from another window to...
  5. zag

    Ontape command

    hi, try making your tape device a named pipe. this can be read by cat in the background, piped to compress and written out to another file, i.e. mknod /var/tmp/mytape.pipe p # create named pipe edit onconfig file or change TAPEDEV via onmonitor to /var/tmp/mytape.pipe and change tape blocksize...
  6. zag

    Continous Logical Log Backup

    oh by the way, don't forget these parameters in your onconfig file: ALARMPROGRAM /users/informix/infdir/etc/log_full.sh # Alarm program path # Log Archive Tape Device LTAPEDEV /inf_archives/logs/logical.log # Log tape device path
  7. zag

    Continous Logical Log Backup

    hi sorry about the late response - here's the script: obviously replace the variables with your own choices. #!/bin/sh export BACKDIR=/inf_archives/logs [ -f ${BACKDIR}/log_full.running ] && exit 0 [ -z "$(ps -ef | grep oninit | grep -v grep)" ] && exit 0 exec 1>> ${BACKDIR}/logical.trc 2>&1...
  8. zag

    Continous Logical Log Backup

    hi basshead, sorry about the late response, i've been on hols for virtually the whole of august! anyway the script is at work, however i'll be back to work on monday so i'll post it for you then. cheers
  9. zag

    How can I automatically recover with ontape

    if you're still trying to sort it out, try using a here doc. let me know if you need more info.
  10. zag

    Continous Logical Log Backup

    jack, if you're still interested i can send you a script i wrote which archives the logs for you to disk (and also compresses them). you can then back them up to tape in your own time. the idea is you replace informix's log_full.sh script (rename it to log_full.sh.bac) with the one i'll send...
  11. zag

    silly question

    Thanks for your responses, guys - i figured maybe i'd forgotten a specifier, however to make myself a bit clearer, maschwa i don't actually know what the output is going to be... sorry, i should have said 999,999,999 was just an example of some numeric output - i didn't want to re-invent the...
  12. zag

    silly question

    silly question i know, but how do i use printf to print: 999,999,999 instead of 999999999? i thought there was a format specifier for it!
  13. zag

    Open/Cat or browse through a text file in ftp mode

    hi suhaimi, would it help to take a directory listing of the remote system into a temporary file and read that to decide which files to pull over? alternatively you could of course, use remsh with awk or cat and send the output to pg on the local machine, then save it to a local file i.e...
  14. zag

    Don't laugh, but How to...

    hey ratbs75, this is probably stating the obvious., but have you tried the manual pages for unix commands (e.g. man du, man lp etc from the shell prompt)? They give you an explanation and options for each command and usually contain a few working examples. If your system does not have manual...
  15. zag

    SQL Client on HP

    Oracle Client Series 8.1.6 or later. Informix Dynamic Server UC5 or later.
  16. zag

    How do I identify number and type of processors?

    hi, run "top". the column in the top left hand corner displays the number of processors starting from 0: eg if you see 0 1 2 3 that means you have 4 processors. can't remember off-hand if the other info you require is displayed but i'll check when i'm back in work on monday and send...
  17. zag

    Using awk to add columns until account number changes...

    Clear as daylight., seems obvious now!
  18. zag

    Using awk to add columns until account number changes...

    Hi Cakiwi, Many thanks for your script example. It worked perfectly and at lightening speed, as is always impressive with awk. Could you enlighten me on a couple of syntaxy type things though, pls... i.e. NR > 1 (I thought NR started at 0 at input?) and how come we need to print after END i.e...
  19. zag

    Using awk to add columns until account number changes...

    Hi all you awk whizzos., wonder if you can help me out here, I would appreciate it immensely! Here is a sample of my file: 12345678 23 12345678 10 33333333 1 444444444 3 444444444 6 Left column is the account number, right column is number of books. What I am trying to do is get awk to add...

Part and Inventory Search

Back
Top