realbasic-nug
[Top] [All Lists]

shell inconsistency...

To: "REALbasic Network Users Group" <realbasic-nug at lists dot realsoftware dot com>
Subject: shell inconsistency...
From: LMSpam at neuropop dot com
Date: Sun, 29 Feb 2004 14:13:41 -0500
References: <3E152558-6AD5-11D8-8F35-000A95DC5C3A at satx dot rr dot com> <4A614FBE-6AD6-11D8-B338-000A959DF1D2 at realsoftware dot com> <25B95B0C-6AE4-11D8-8F35-000A95DC5C3A at satx dot rr dot com>
I have an app which needs to launch a background daemon.

I was using

dim f as folderitem

f=getfolderitem("").child("mldk").child("mlnet")
f.launch

but this always launched the daemon as a root process, so it was dumping all it's support files in the root directory rather than in it's own

Also, on Windows the launch always terminated before completion.

So then I tried
dim f as folderitem
f=getfolderitem("").child("mldk")

path=replaceAll(f,":","/")
mShell1.execute "sh"
mShell1.write "cd " + path +chr(13)
mShell1.write "./mlnet" + chr(13)


This works fine on my laptop, but on 10.2.1 the daemon won't launch, and of course on Windows it doesn't do squat... (even if I replaceAll ":" with "\")


I'm still running RB 5.2.4

is this a 10.2.1 problem, or a shell issue... and why won'd Windows do the right thing?...


- - -
Unsubscribe or switch delivery mode:
<http://support.realsoftware.com/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>