🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #1454

tip ~p escape in a shell script

#1454
From: James F Bond-Harris
Date: Wed, 06 Sep 1989 20:50
27 lines
1338 bytes
I am trying to write a shell script to allow me to send a file
from my Sun 3/60 up to a remote machine for printing.  I have 
been using tip as my terminal emulator, having no other at the
time.  What I am trying to do is:

	#! /bin/sh
	if [ $# -ne 1 ]
	then
		echo "usage:  rpr filename"
		exit
	fi
	~p $1 %HOME/tmp
	(printing  command) $1
	rm $HOME/tmp/$1

The problem is that the ~p escape is interpretted by sh, and
it complains that it cannot find anything like ~p.  The manual
page doesn't seem to say anything about using the escapes in
a shell script, only that tip looks for them at the start of
new lines.  Is there any way to have the escapes work inside
the script, or am I stuck with doing things manually?  Or is
there some other way that I (obviously:) haven't heard of?

Thanks in advance,

Jim Bond-Harris
ihlpy!jimx
Technical Details
Message-ID: <1517@brazos.Rice.edu>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ogccse!blake!milton!uw-beaver!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!cs.utexas.edu!tut.cis.ohio-state.edu!ucsd!ogccse!blake!milton!uw-beaver!rice!sun-spots-request
From: jimx@ihlpy.att.com (James F Bond-Harris)
Newsgroups: comp.sys.sun
Subject: tip ~p escape in a shell script
Keywords: Miscellaneous
Message-ID: <1517@brazos.Rice.edu>
Date: 6 Sep 89 20:50:17 GMT
Sender: root@rice.edu
Organization: Sun-Spots
Lines: 27
Approved: Sun-Spots@rice.edu
X-Sun-Spots-Digest: Volume 8, Issue 123, message 17 of 17