HP3000-L Archives

November 1999, Week 2

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:
John Backus <[log in to unmask]>
Reply To:
John Backus <[log in to unmask]>
Date:
Fri, 12 Nov 1999 14:36:30 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (82 lines)
You could use something like these scripts.  These are based upon ideas
others have contributed on the list in times past (so my thanks to them).
Substitute EDITOR for QUAD if you like.

:PRINT FROMTO;PAGE=0
parm _ft_parm_filename
setvar _ft_var_filename "!_ft_parm_filename"
comment
comment 'fromto' 9/28/1999 jfb Beechglen Development, Inc.
comment copy a bytestream file to a temporary non bytestream file
comment ,use quad.pub.sys and text the file in, upon exiting quad
comment copy the temporary non bytestream file back into the
comment original bytestream file.
comment
comment just in case list out some security information about
comment the file you just indicated in case you inadvertently
comment change things based upon your current logon, etc.
comment
comment LISTFILE PoSiX example: LISTFILE /usr/local/samba/docs/@
comment keep in mind your current working directory (HPCWD)
comment CHGROUP PUB as manager.sys will make HPCWD = /SYS/PUB
comment
listfile !_ft_var_filename,-2
listfile !_ft_var_filename,-3
setvar _ft_workfile &
  str(("!hpjobtype"+"!hpjobnum"+"tmp"),1,8)
if ![finfo("!_ft_workfile","exists")] then
  purge !_ft_workfile
endif
comment
comment NOTE: the temp copy is kept in your CWD (:SHOWVAR HPCWD)
comment
frombyte.hpbin.sys  '!_ft_var_filename !_ft_workfile'
run quad.pub.sys;info="t !_ft_workfile"
tobyte.hpbin.sys '-at !_ft_workfile !_ft_var_filename'
purge !_ft_workfile
deletevar _ft_workfile
deletevar _ft_var_filename

:PRINT FROMTOP1;PAGE=0
parm _ft_parm_filename
setvar _ft_var_filename "!_ft_parm_filename"
comment
comment 'fromtop1' 9/28/1999 jfb Beechglen Development, Inc.
comment
comment copy a bytestream file to a temporary non bytestream file
comment , run quad.pub.sys and text the temporary file in
comment
comment just in case list out some security information about
comment the file you just indicated in case you inadvertently
comment change things based upon your current logon, etc.
comment
comment LISTFILE PoSiX example: LISTFILE /usr/local/samba/docs/@
comment keep in mind your current working directory (HPCWD)
comment CHGROUP PUB as manager.sys will make HPCWD = /SYS/PUB
comment
listfile !_ft_var_filename,-2
listfile !_ft_var_filename,-3
setvar _ft_workfile &
  str(("!hpjobtype"+"!hpjobnum"+"tmp"),1,8)
if ![finfo("!_ft_workfile","exists")] then
  purge !_ft_workfile
endif
comment
comment NOTE: the temp copy is kept in your CWD (:SHOWVAR HPCWD)
comment
frombyte.hpbin.sys  '!_ft_var_filename !_ft_workfile'
run quad.pub.sys;info="t !_ft_workfile"
purge !_ft_workfile
deletevar _ft_workfile
deletevar _ft_var_filename

From: Costantino, Rocky
> How do most people edit the smb.conf, and other such files, on the HP
3000?
> I can never get vi to work, so I usually ftp to a PC then ftp back after
> changes. I have also discovered that QEDIT allows editting of hfs file
> names, but all sites don't have QEDIT.

John Backus
www.beechglen.com

ATOM RSS1 RSS2