tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* exec statement to open an input file
@ 2005-03-24 21:37 A. Mahendra Rajah
  0 siblings, 0 replies; only message in thread
From: A. Mahendra Rajah @ 2005-03-24 21:37 UTC (permalink / raw)


  When the I/O unit is a variable, the exec statement fails
  as follows:

        k=4
        set -xv
        exec ${k}< File25.dat
        + exec 4
        + 0< File25.dat
        ask.shl[11]: 4:  not found

  How can one use variables in the exec statement to open files?

  Thanks,

  -- mahendra
.................................................................
   A. Mahendra Rajah             Email: Mahendra.Rajah@URegina.CA
   Tru64 UNIX Systems Manager    Phone:            (306) 585-4496
   Dept. of Computing Services   FAX:              (306) 337-2324
   University of Regina,
   Regina, Sask., S4S 0A2
   Canada.       
.................................................................



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-24 21:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-24 21:37 exec statement to open an input file A. Mahendra Rajah

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox