Red Hat Configuration - Re: Script run older ver. ap. in other partition ?

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Configuration > August 2006 > Re: Script run older ver. ap. in other partition ?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

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

2006-08-08, 7:28 am


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

> On 2006-07-12, news wrote:
>
> 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.
>
>
> A script can modify the environment.
>
>
> 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
[vbcol=seagreen]
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.

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com