* Running csh script after ftp via W2K
@ 2005-02-18 16:18 Tom Linden
0 siblings, 0 replies; only message in thread
From: Tom Linden @ 2005-02-18 16:18 UTC (permalink / raw)
I had to poer up a 4.0d machine and discovered
that the license paks had expired. Logged in as
root and transferred the license pak file
My login shell is bash so I run the script as
root> /bin/csh pak.txt
then^M: Command not found.
but there seems to be a problem recognizing end of line.
When I dump the file I can see the lines are terminated
with cr nl ( OX0d 0X0a or ^J ^M )
When I read the file with emacs and search for ^M none is
found, but ^J is.
How should the lines be terminated for the csh?
I guess ^J. Any tips for stripping out the ^M?
The first few lines of the file start
#!/bin/csh
#
# *******************************************************************
# Issued by the License Key Management Group
# Nashua - New Hampshire - USA
# *******************************************************************
#
if `whoami` != "root" then
echo "You must be superuser to run this script"
exit 1
endif
test -r /etc/lmf
if ($status != 0) then
set lmfcom="/usr/sbin/lmf"
else
set lmfcom="/etc/lmf"
endif
echo ""
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-02-18 16:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-02-18 16:18 Running csh script after ftp via W2K Tom Linden
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox