Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Re: Script run older ver. ap. in other partition ?

1 view
Skip to first unread message

news

unread,
Aug 7, 2006, 7:34:21 PM8/7/06
to

On Thu, 13 Jul 2006 12:52:39 -0400, Chris F.A. Johnson wrote:

> On 2006-07-12, news wrote:
>>
>> Bill Marcum pointed out that:
>>> The enviroment is specific to a process, not the terminal.
>> Ok, so then if: SHELL=/bin/bash shows me
>> /usr/bin/printenv
>> how do I run my good old 'ash-based' applications, which happen to
>> be in another partition ?
>
> The partition an application is on makes no difference.
>
> What is an ash-based application"? Do you mean a shell script? Ash
> is a POSIX shell, and anything that runs in it should also run in
> bash or ksh.
>
>> Once I've mounted the partition, I guess I need to make ash-scripts
>> which will run them, with the correct environment.
>> If they are run from a script, does that script make the environment?
>
> A script can modify the environment.
>
>> Perhaps I could incrementally evolve the script[s] by just patching
>> each error-mesg till it works ?
>
> What script[s] are you talking about? What are the error messages?

The News & mail reader, rna, is written as an ash script, for mulinux:
a brilliantly simple 1m7-fd0 installation. I love the simplicity of
these Italian designs, compared to the Disneyland crap.

Here's my log:-
Run /mnt/p3/rna/rna from mc ==
# ./rna
shift: can't shift that many

>> search 'ash-script' [implemetation of the mail/news-reader]
for "shift" [don't you love mc?!].
== found twice eg. ======
#!/bin/ash
##################################
# RNA Messenger
# rustic MUA for muLinux
##################################
# v0.23 (C) 2000, M.Andreoli
# 7/10/00 tweaks by A. Costa

#set -x

# syntax

case "Z$1Z" in
Z-hZ) echo "rna [-h|-mail|-news]"
exit;;
ZZ|Z-mailZ|Z-MailreaderZ)
MODE=Mailreader
shift ;;
Z-newsZ|Z-NewsreaderZ)
MODE=Newsreader
shift;;
esac
...snip...

?? perhaps FC1's ash is incompatible ??
Try force use of mulinx/ash ==edit "#!/bin/ash" to "#!mnt/p3/bin/ash"
& test-run == /mnt/p3/bin/ash: can't load library 'libc.so.5'
Try sym-link in 'lib-dir'
Where/what is 'lib-dir' ? Try /usr/bin/printenv ==> doesn't tell.
See where mulinux has libc.so.5 [using mc of course !].
== /mnt/p3/lib/ -> libc.so.5.4.13
? So sym-link <this Partn>/lib/libc.so.5 -> /mnt/p3/lib/libc.so.5.4.13
?! not sure how to use mc to do this !?
Try: ln -s /lib/libc.so.5 /mnt/p3/lib/libc.so.5.4.13
== ln: `/mnt/p3/lib/libc.so.5.4.13': File exists
Try: ln -s /mnt/p3/lib/libc.so.5.4.13 /lib/libc.so.5
== mc shows the required link as the most recent entry/file of /lib/* !
Test run: # ./FC1rna == .: Can't open rna.conf
Seek rna.conf in mulinux-parttion [using mc !]
== found in /mnt/p3/etc == mc: copy to /etc & test run
== ./FC1rna
cat: /usr/rna/welcome: No such file or directory
exec: muless: not found
?!?! OK this 'making the web-of-files available to the script in
the mulinux partition is not practical.

What I want is to redirect all calls to '/root/ to '/mnt/p3'
for the duration of running the RNA script/application.

Is that possible ?

Thanks for info,

== Chris Glur.

0 new messages