🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.micro.atari16
Article #837

Problem with redirection

#837
From: Mike Hojnowski
Date: Fri, 06 Jun 1986 03:06
21 lines
1493 bytes
[]

I'm having a wierd problem.  I wrote a little "Hello, world!" program in C, and
compiled using the developers kit.  From the "command.prg" supplied with the
developers kit, I can issue "hello" and get the expected output, but when I
try to redirect the output with "hello >outfile", it creates an empty file.
I tried sticking in some flushes & stuff, but nothing seems to work.  I could
swear I had this work once, but it may have been before I got my ROMS.  I can
redirect output from "dir" commands & such (although dir needs an arguement 
when trying to redirect) just fine.

Details:
	520ST with 1 Meg upgrade & ROMS.
	Problem occurs with or without ramdisk (512K lmd's)
	linked with:
	  link68 [u,tem[m:],s] hello.68k=gemstart,hello.o,gemlib,osbind,libf
	
Any assistance would be greatly appreciated.
-- 
--
Mike Hojnowski (Hojo)		{ihnp4,rochester,decvax}!cornell!batcomputer!mqh
Technical Details
Message-ID: <392@batcomputer.TN.CORNELL.EDU>
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!orsvax1!pyrnj!caip!seismo!rochester!bullwinkle!batcomputer!mqh

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!ulysses!allegra!princeton!orsvax1!pyrnj!caip!seismo!rochester!bullwinkle!batcomputer!mqh
From: mqh@batcomputer.TN.CORNELL.EDU (Mike Hojnowski)
Newsgroups: net.micro.atari16
Subject: Problem with redirection
Message-ID: <392@batcomputer.TN.CORNELL.EDU>
Date: Thu, 5-Jun-86 23:06:08 EDT
Article-I.D.: batcompu.392
Posted: Thu Jun  5 23:06:08 1986
Date-Received: Sun, 8-Jun-86 03:45:54 EDT
Organization: Theory Center, Cornell U., Ithaca NY
Lines: 21
Keywords: redirection, empty, file