ITEM: DH0557L

Useage: sysrestore {-f DeviceName}{-tD|F|L|R|V|B}[-nyFHLTV][-v|x]



Question:

Env:
  AIX 4.2.1
  RISC 390
  sysback 4.1.1.9

Problem:
  When using smit on a graphical station to restore files
  it errors out with:
  The customer gets to this menu by doing this:

  On a CDE screen I selected the file drawer (bottom right)
  Go to the Application Manager
  Then goto System_Admin, then select smit
  Then try doing a restore in sysback

1800-106 An error occured:
Useage: sysrestore {-f DeviceName}{-tD|F|L|R|V|B}[-nyFHLTV][-v|x]
[-c term device][-h hostname][-i sequence][-D destination] data_list...

Action Taken:

This works correctly from smitty and msmit on the command line.
I need some assitance in determing why this is failing from CDE.  

The problem turns out to be the "tty" command fails within
smit when it is run from CDE.

It failes with this error message:

tty: 0551-011 Standard input is not a tty 

Within smit  sysback makes these calls:

tty=$(/usr/bin/tty 2>/dev/null)

  this command fails with this error message:
  tty: 0551-011 Standard input is not a tty

  which causes the command below to fail with a usage Mesasge

type=$(/usr/sbin/sysrestore -NT $tty $seq $host -f $dev)

CLOSED by tj on 07/31/97 11:00:

Thanks! This did the trick. The tty command puts its error out 
on standard output instead of standard error. I already trapped
this but they apparently changed the message output so the code
no longer caught it. I've changed the code to be more generic.
This will be in sysback.rte 4.1.2 

Action Plan:
  Sending sysback.rte 4.1.2 when it becomes available.


Support Line: Useage: sysrestore {-f DeviceName}{-tD|F|L|R|V|B}[-nyFHLTV][-v|x] ITEM: DH0557L
Dated: July 1997 Category: N/A
This HTML file was generated 99/06/24~13:30:16
Comments or suggestions? Contact us