Now the topic is up.
Am I the only one wondering why so much documentation use the
TYPE command to activate?
It bothers me a bit to have the TYPE command execute code.
$ type 0"myusername mypassword"::srv.com
$ define/nolog sys$output sys$net
$ show time
$ write sys$output "Deleting all files"
$ exit
$ type 0"myusername mypassword"::"task=srv.com"
2-JUN-2025 18:56:35
Deleting all files
$ type 0"myusername mypassword"::"srv.com"
$ define/nolog sys$output sys$net
$ show time
$ write sys$output "Deleting all files"
$ exit
$ type 0"myusername mypassword"::"0=srv.com"
2-JUN-2025 18:56:35
Deleting all files
Inserting two characters and type becomes execute.
Arne
Am I the only one wondering why so much documentation use the TYPE
command to activate?
It bothers me a bit to have the TYPE command execute code.
Now the topic is up.
Am I the only one wondering why so much documentation use the
TYPE command to activate?
It bothers me a bit to have the TYPE command execute code.
$ type 0"myusername mypassword"::srv.com
$ define/nolog sys$output sys$net
$ show time
$ write sys$output "Deleting all files"
$ exit
$ type 0"myusername mypassword"::"task=srv.com"
2-JUN-2025 18:56:35
Deleting all files
$ type 0"myusername mypassword"::"srv.com"
$ define/nolog sys$output sys$net
$ show time
$ write sys$output "Deleting all files"
$ exit
$ type 0"myusername mypassword"::"0=srv.com"
2-JUN-2025 18:56:35
Deleting all files
Inserting two characters and type becomes execute.
Arne
Now the topic is up.
Am I the only one wondering why so much documentation use the
TYPE command to activate?
It bothers me a bit to have the TYPE command execute code.
On 2025-06-02, Arne Vajhøj <arne@vajhoej.dk> wrote:
Now the topic is up.
Am I the only one wondering why so much documentation use the
TYPE command to activate?
It bothers me a bit to have the TYPE command execute code.
What is the difference between that and performing a read operation on
a URL that causes a script on the server to execute in the background ? :-)
Arne Vajhøj was thinking very hard :
Now the topic is up.
Am I the only one wondering why so much documentation use the
TYPE command to activate?
It bothers me a bit to have the TYPE command execute code.
$ type 0"myusername mypassword"::srv.com
$ define/nolog sys$output sys$net
$ show time
$ write sys$output "Deleting all files"
$ exit
$ type 0"myusername mypassword"::"task=srv.com"
2-JUN-2025 18:56:35
Deleting all files
$ type 0"myusername mypassword"::"srv.com"
$ define/nolog sys$output sys$net
$ show time
$ write sys$output "Deleting all files"
$ exit
$ type 0"myusername mypassword"::"0=srv.com"
2-JUN-2025 18:56:35
Deleting all files
Inserting two characters and type becomes execute.
I don't see anything wrong with that. In the first syntax you are
activating the FAL object (implicitely, because it is tightly integrated
with RMS) to display the contents of the file ; in the second syntax
you are activating the TASK object and are asking to display (hence the
TYPE command) the output from the execution of a procedure on the remote system. It's the equivalent of talking to two different IP ports. For
the first systax you would be talking to FTP (nothing really closer to
FAL than that, sorry) while for the second one you would be talking to,
for example, REXEC...
It is true that a HTTP GET can result in different actions: web server returning static HTML, web server running code that produce dynamic HTML without changing anything, web server running code that produce dynamic
HTML and do change something.
But not sure that I see the TYPE command being similar to a HTTP GET.
On 6/3/2025 8:26 PM, Lawrence D'Oliveiro wrote:
As pointed out already, it’s not the fault of the TYPE command, it’s
the fault of the underlying comms architecture that allows for this
behaviour. It works with any other command that can open an arbitrary
user-specified file through the same API layer (i.e. RMS).
Yes.
On Tue, 3 Jun 2025 11:23:06 -0400, Arne Vajhøj wrote:
It is true that a HTTP GET can result in different actions: web server
returning static HTML, web server running code that produce dynamic HTML
without changing anything, web server running code that produce dynamic
HTML and do change something.
Ah, now you’re getting into something called “REST”, where HTTP is being
used essentially as a sort of RPC mechanism.
This involves the addition of more commands besides GET and POST: you also have PUT and DELETE (and possibly others as well). GET is not supposed to cause any (user-visible) state changes; it’s only supposed to return info. As I understand it, POST is supposed to be the mechanism for creating objects, PUT is supposed to be used for changing the state of objects, and DELETE is to be used for deleting objects.
But not sure that I see the TYPE command being similar to a HTTP GET.
As pointed out already, it’s not the fault of the TYPE command, it’s the fault of the underlying comms architecture that allows for this behaviour.
It works with any other command that can open an arbitrary user-specified file through the same API layer (i.e. RMS).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 505 |
Nodes: | 16 (2 / 14) |
Uptime: | 89:46:29 |
Calls: | 9,935 |
Calls today: | 1 |
Files: | 13,813 |
Messages: | 6,348,491 |