HP3000-L Archives

June 2012, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
donna hofmeister <[log in to unmask]>
Reply To:
Date:
Tue, 5 Jun 2012 06:15:06 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (75 lines)
You know that regular rename will work just fine, yes?

However, if there are compelling reasons for using mv....you know that you
can invoke it without going thru the shell, yes?

However, if there are still compelling reasons for using sh....then add
"-c".  The man page for sh explains it:

     The shell accepts the following options on the command line:

     -c cmdstring
          executes cmdstring as if it were an input line to the shell and
          then exits.  This is used by programs (for example, editors) that
          call the shell for a single command.  sh assigns arguments after
          cmdstring to the positional parameters.  If you specify cmd_name,
          special parameter 0 is set to this string for use when executing
          the commands in cmdstring.

The command line might look something like:

xeq sh.hpbin.sys "-c 'mv /STOCK2K/ASP/edi_in/fsfile3
/STOCK2K/ASP/edi_processed/fsfile3'"

    - donna

Donna Hofmeister
Allegro Consultants, Inc.
408-252-2330


-----Original Message-----
From: HP-3000 Systems Discussion [mailto:[log in to unmask]] On Behalf
Of John Pitman
Sent: Monday, June 04, 2012 11:45 PM
To: [log in to unmask]
Subject: [HP3000-L] posix mv problem

Having trouble getting a programmatic mv to work....

run sh.hpbin.sys;info='mv /STOCK2K/ASP/edi_in/fsfile3
/STOCK2K/ASP/edi_processed/fsfile3';



gives

mv 60: <(command) and >(command) not implemented

Have tried with both ; on end or \n, one gives a msg about    ;  terminator
or CR.

Doing the mv part form just going into sh works, but I need to do it inside
the program..??

Any suggestions please?

Tia,
jp

________________________________
CAUTION: This message may contain privileged and confidential information
intended only for the use of the addressee named above. If you are not the
intended recipient of this message you are hereby notified that any use,
dissemination, distribution or reproduction of this message is prohibited.
If you have received this message in error please notify RYCO Hydraulics
Pty. Ltd. immediately. Any views expressed in this message are those of the
individual sender and may not necessarily reflect the views of RYCO
Hydraulics Pty. Ltd.

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2