English Amiga Board


Go Back   English Amiga Board > Support > support.Other

 
 
Thread Tools
Old 29 April 2020, 11:45   #1
avantgarden
Registered User
 
Join Date: Apr 2020
Location: Roma
Posts: 48
Piping STDIN to a script

Hello powerusers!

I'm trying to develop a small daemon for AmiTCP.

AmiTCP V3 lacks the "DOS" option in inetd.conf. This don't allow to use the Arexx Web Server for example. Inetd programs can only be binaries (AFAIK, correct me if I'm wrong!).

My "daemonizer" software written in Blitz2 should work like this:

Code:
dmnz stream tcp nowait root dmnz path:to/yourdosscript
It should pipe data in and out from the socket and pass it to the script.

But is that even possible in Kick 2.1?

Code:
execute myscript <test_data
...doesn't work as expected!

My test script looks like this:

Code:
set a `type *`
echo $a
quit
I'd expect the script to echo back STDIN to STDOUT. Also "type <*" fails.

Is this asking too much under Kick 2.1? ("version shell" gives 37.69)

Is this relevant here?
https://forum.amiga.org/index.php?PH...9623#msg819623

Any workaround possible?
Thanks a lot!!
avantgarden is offline  
Old 29 April 2020, 11:47   #2
avantgarden
Registered User
 
Join Date: Apr 2020
Location: Roma
Posts: 48
Forgot to subscribe to the post above! Please reply to this one. Cheers
avantgarden is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
More script help please Glen M support.Apps 8 01 February 2020 19:13
Script help -Acid- support.Other 6 09 July 2018 20:34
AmigaDos script help liviux76 Coders. Scripting 8 09 November 2017 16:20
Pipe both stdin and stdout from a sub-process alkis Coders. C/C++ 2 07 February 2017 18:22
Length of CON/stdin buffer? idrougge Coders. Scripting 4 12 October 2015 15:32

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 17:20.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.06993 seconds with 15 queries