From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 8 Nov 2014 17:08:01 +0100 Message-ID: From: Rudolf Sykora To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] rc shell script run by cron on linux Topicbox-Message-UUID: 26301116-ead9-11e9-9d60-3106f5b1d025 On 8 November 2014 14:27, Charles Forsyth wrote: > > On 8 November 2014 12:44, Rudolf Sykora wrote: >> >> Have anybody ever solved a problem like this? >> (What is the minimum I have to have in order to >> run rc script on linux?) > > > Just a guess but rc needs the bootstrap rcmain file, which it is looking for > in the default > directory, which is in /usr/local. I think if you set/export > PLAN9=/home/sykora/plan9port > as well as PATH, it might work. Thanks, exporting PLAN9 at a suitable place seems to have helped. Still, only if you can tell (I will test it at some point anyhow), is 1) rc binary 2) rcmain 3) suitable setting of PLAN9 variable enough if you want to pass your rc script to somebody who does not have p9p installed? (Say, I wrote some rc scripts and now other people want to use it...) Thanks Ruda