<div dir="ltr">Hello Peter thanks again for the response. A few answers to some questions:<div><br></div><div>- What is the application? What does "alt-rotator" do?</div><div>- I'm really interested: How did you inherit this application and what do you need to do?<br><br></div><div><div>Alt-rotator is the altitude drive of a 3.5m telescope an observatory, I inherited this system because the last engineer that worked on this retired and left no documentation. I came on as a Software Engineer inherited many things, this is one thing that is coming up. We need to edit a flat file that holds various coefficients on how to move the motors better etc. Hence the need for my ability to somehow get on this box with more than telnet or get an editor on it to make these changes to values in the ini file.</div><div></div></div><div><br></div><div>- "cexpr" expects C language a C language compatible command line, your "mount -t.." command will definitely not work. If you are not a C language programmer you face a major challenge and will need an awful lot of help to continue.<br>- The function I suggested you try wasn't "ikup", it was "lkup". That's short for "look up". Try 'lkup("mount")' and see what you see.<br></div><div><br></div><div>" If you are not a C language programmer you face a major challenge and will need an awful lot of help to continue." It has been 10 years or so...i am guessing the OS "prompt" is more like an interactive c shell then? I guess it is learning how to use these functions (what arguments to pass) to make it where we can edit the ini files.</div><div><br>I have been successful at of course using ls, and cd (I can find the INI files I need to edit), I just had zero idea on how to edit these files, but the lkup("mount") command already gives me some ideas of how this might be achieved. Though since this is an active production box I am very scared to go throwing commands at it and 'learning as I go' since this is the main system and no backup :o</div><div><br></div><div>So I am learning as I go but this is already helping and maybe nudging me towards that 'aha' moment (I would even settle for the 'oh duh' moment too)</div><div><br></div><div><br></div><div><br></div><div><br></div><div>Totally my mistake on ikup vs lkup, when i try lkup("mount")</div><div>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">alt-rotator>lkup("mount")</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">=====<span class="gmail-Apple-converted-space"> </span>In module 'SYSTEM' (0x04a238dc) =====:</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1bd2b4[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>IMFS_fsunmount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1bd970[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>IMFS_mount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1bdc54[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>IMFS_unmount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x2de044[ <span class="gmail-Apple-converted-space"> </span>0]: VOID<span class="gmail-Apple-converted-space"> </span>void<span class="gmail-Apple-converted-space"> </span>RTEMS_Malloc_Sbrk_amount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x2a950c[ <span class="gmail-Apple-converted-space"> </span>0]: VOID<span class="gmail-Apple-converted-space"> </span>void<span class="gmail-Apple-converted-space"> </span>configuration_mount_table</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1d7e73[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>file_systems_below_this_mountpoint</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1020d4[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>filesys_fsmount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1d41c0[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>init_fs_mount_table</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1d41e4[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>mount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x2a951c[ <span class="gmail-Apple-converted-space"> </span>0]: VOID<span class="gmail-Apple-converted-space"> </span>void<span class="gmail-Apple-converted-space"> </span>rtems_filesystem_mount_table</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x2de094[ <span class="gmail-Apple-converted-space"> </span>0]: VOID<span class="gmail-Apple-converted-space"> </span>void<span class="gmail-Apple-converted-space"> </span>rtems_filesystem_mount_table_control</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x2a9520[ <span class="gmail-Apple-converted-space"> </span>0]: VOID<span class="gmail-Apple-converted-space"> </span>void<span class="gmail-Apple-converted-space"> </span>rtems_filesystem_mount_table_size</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1bb4ba[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>rtems_fsmount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1bb400[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>rtems_fsmount_create_mountpoint</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1be24e[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>rtems_ftp_mount_me</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x1d7eaa[ <span class="gmail-Apple-converted-space"> </span>4]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>unmount</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">=====<span class="gmail-Apple-converted-space"> </span>In module 'nfs.obj' (0x04a37f70) =====:</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x4aa65ff[<span class="gmail-Apple-converted-space"> </span>96]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>xdr_mountbody</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-Apple-converted-space"> </span>0x4aa6532[<span class="gmail-Apple-converted-space"> </span>35]: <span class="gmail-Apple-converted-space"> </span>long (*)()<span class="gmail-Apple-converted-space"> </span>xdr_mountlist</span></p>
<p class="gmail-p2" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0);min-height:13px"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"></span><br></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">USER VARIABLES:</span></p>
<p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures">0x00000000 (0) </span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p><p class="gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-s1" style="font-variant-ligatures:no-common-ligatures"><br></span></p></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 25, 2019 at 3:29 PM <<a href="mailto:dufault@hda.com">dufault@hda.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
<br>
> On Oct 23, 2019, at 15:11 , Shane Thomas <<a href="mailto:codejoy@gmail.com" target="_blank">codejoy@gmail.com</a>> wrote:<br>
> <br>
> So I think I found the source, there is no ikup command when I am telnet'ed in.<br>
> <br>
> There is a mount command it seems but I have no idea how to use it, ones suggestion of using it as:<br>
> mount -t nfs foo:/bar /net<br>
> <br>
> fails but calling mount("something") fails differently:<br>
> I am not sure what all the numbers mean from the returning values items etc. <br>
> <br>
> <br>
> 0x001d41e4 (1917412)<br>
> alt-rotator>mount -t nfs 10.50.1.1:/test /test<br>
> Cexp syntax error: syntax error, unexpected IDENT<br>
> alt-rotator>mount("")<br>
> 0xffffffff (-1)<br>
> alt-rotator>mount<br>
> 0x001d41e4 (1917412)<br>
> <br>
> <br>
> <br>
> I also goofed (already) and when I mkdir test i forgot the quotes<br>
> so I put mkdir(test) and created something I cannot seem to remove :/ . (the UWVS?? etc)<br>
> <br>
> alt-rotator>ls()<br>
> 2, 2948b, 0.0 00755 dev/<br>
> 16, 16384b, 0.0 00000 apo/<br>
> 12959797, 4096b, 501.501 00775 rtems/<br>
> 16, 0b, 0.0 00000 UWVS???l$4?|$8??t$<?<br>
> 17, 0b, 0.0 00000 test/<br>
> <br>
> <br>
> And to the question: <br>
> - Can you say what the board support package and application are?<br>
> <br>
> I am not sure what specifically you mean here, in the folder I found the source code (it was messy) i found all these other folders which might be packages compiled to it? and the README said to use the rtems-4.7.1 folder (where the code is)<br>
> <br>
> [root@devel1 tools]# ls<br>
> build-4.6 cexp-1.5-4.6 ntp-4.1.1a-rtems-20030127.tar rtems-4.6.99.3.APO rtems-4.7.1.APO-RS232-Driver rtems-nfs-1.3<br>
> build-4.7 cexp-1.5-4.7 openntpd-3.9p1 rtems-4.6.99.3.ORIG rtems-4.7.3 rtems-nfs-1.4<br>
> build-4.7.1 ntp-4.1.1a-rtems-20030127 Python rtems-4.7 RTEMS-GeSys_2.1.beta rtemsNfs-1.5<br>
> build-4.7.1 . ntp-4.1.1a-rtems-20030127.APO README rtems-4.7.1 RTEMS-GeSys_2.1.beta-4.6 rtems-telnetd-1.1.beta<br>
> cexp-1.5 ntp-4.1.1a-rtems-20030127.OLD rtems-4.6.6 rtems-4.7.1.APO-Network-Mod RTEMS-GeSys_2.1.beta-4.7 temp<br>
> <br>
> Sort of progress, just not sure how or where :D and totally sad I seemed to of created a corrupted file on the fs.<br>
> <br>
> <br>
> <br>
<br>
You're using something that is tied to what's used in EPICS that dates from a while back. I'm not an EPICS user, but I know "GeSys" is some sort of "generic system" for RTEMS on EPICS. Again, EPICS is at <a href="https://epics.anl.gov" rel="noreferrer" target="_blank">https://epics.anl.gov</a>.<br>
<br>
When you executed "mkdir(test)" without quotes around "test" you created a directory on whatever you are using as a file system that used the address of the symbol "test" as a character string and the "mkdir" function dutifully created that directory. Don't worry about that, if you figure out how to use the system you can get rid of it. Actually, "rmdir(test)" (without quotes around test) will probably remove it.<br>
<br>
I'm getting very curious.<br>
<br>
- What is the application? What does "alt-rotator" do?<br>
- "cexpr" expects C language a C language compatible command line, your "mount -t.." command will definitely not work. If you are not a C language programmer you face a major challenge and will need an awful lot of help to continue.<br>
- I'm really interested: How did you inherit this application and what do you need to do?<br>
- The function I suggested you try wasn't "ikup", it was "lkup". That's short for "look up". Try 'lkup("mount")' and see what you see.<br>
<br>
<br>
Peter<br>
-----------------<br>
Peter Dufault<br>
HD Associates, Inc. Software and System Engineering<br>
<br>
This email is delivered through the public internet using protocols subject to interception and tampering.<br>
<br>
</blockquote></div>