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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

gbak output

Status
Not open for further replies.

vascobrito

Technical User
Feb 27, 2003
28
PT
hi there

i'm trying this:

gbak -b -v mydb.gdb 2> | split -b -a2 mydb.bak 300m

this isn't working because it outputs the backup to a file named split instead of output to the command that splits the backup files. I have noticed that i can't use stdout in my HP-UX, there is no such device. How can i make this work?

any help , please?

thanks in advance
 
This is dependent on the shell you're using...

For bash, you could use one of these solutions:

If you want to /dev/null STDOUT:
Code:
gbak ... 2>&1 1>/dev/null | split...
gbak ... 2>&1 1>- | split...

If you want STDOUT to be written on the tty:
Code:
gbak ... 3>&2 2>&1 1>&3 | split...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top