🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.infosystems.gopher
1 messages
1 total messages Started by rbd900@numbat.an Mon, 10 May 1993 09:37
Re: executing shells by gopherd
#3971
Author: rbd900@numbat.an
Date: Mon, 10 May 1993 09:37
34 lines
957 bytes
Hans,

You've done everything right except that gopher has this poorly documented
"feature" that it will only treat something as an executable if there is no
space between the exclamation mark and the slash on the top line of the
script. (see below...)

Rob.

>In the manual page of gopherd is stated that you can execute shell
>scripts by the gopherd server:
>
>> Name=Executed command name
>> Type={a type}
>> Path=exec:"args":/scriptname
>> Host=+
>> Port=+
>
>Can somebody explain how this works? I have tried the following.
>I made script file ".script"
>> #! /bin/sh
     ^  <---------- Lose the space on the above line and it will work.
>> if [ $# = 0 ]
>> then
>>    exit 1
>> fi
>>
>> man $1
>> exit 0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Robert Davy                           Robert.Davy@anu.edu.au
Computer Services Centre                Phone: (06) 249 2978
Australian National University            Fax: (06) 247 3425

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads