Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
68 user(s) are online (31 user(s) are browsing Forums)

Members: 1
Guests: 67

Swisso, more...

Headlines

Forum Index


Board index » All Posts (rjd324)




Re: SED does not produce output within SH on X5000 but does with X1000 (program version are the same)
Quite a regular
Quite a regular


What is also interesting is that the X1000 opens up:

00058 : sed             o.k. = [execOpenLibrary("dos.library",37) [8uS]
00059 : 
sed             o.k. = [execOpenLibrary("utility.library",37) [3uS]


Where as the X5000 opens up:

00018 : sed o.k. = [execOpenLibrary("newlib.library",52) [4uS]


This was checked using Snoopy.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: Yet Another WTH Moment
Quite a regular
Quite a regular


Okay, well... for whatever reason the issue seems to be running SED within SH.

I can run that SED within Amiga "Shell" on both machines, and I get the same results, but, within Amiga "Shell" -> within "SH" -> running SED produces no output on my X5000, but it works on the X1000.

My reproducible steps are:

1 - Copy the following contents into any file:
!_TAG_FILE_FORMAT    1    /original ctags format/
!
_TAG_FILE_SORTED    0    /0=unsorted1=sorted2=foldcase/
!
_TAG_PROGRAM_AUTHOR    Darren Hiebert    /dhiebert@users.sourceforge.net/
!
_TAG_PROGRAM_NAME    Exuberant Ctags    //
!_TAG_PROGRAM_URL    http://ctags.sourceforge.net    /official site/
!_TAG_PROGRAM_VERSION    5.8    //
BAIL    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define BAIL(/
PI    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define PI /
TO_DEG    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define TO_DEG(/
WIDTH    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define WIDTH    /
HEIGHT    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define HEIGHT /
FRAME_S    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define FRAME_S    /
PER_SEC    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define PER_SEC(/
SEC    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define SEC(/
VEL_X    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define VEL_X    /
VEL_Y    Other:Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define VEL_Y    /


2. CD into the directory containing that file

3. run the following command in Amiga Shell:
sed -"s|\([A-Za-z]\+\):|/\1/|p" tags1


4. See that the output is:
!_TAG_PROGRAM_URL    /http///ctags.sourceforge.net    /official site/
BAIL    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define BAIL(/
PI    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define PI /
TO_DEG    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define TO_DEG(/
WIDTH    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define WIDTH    /
HEIGHT    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define HEIGHT /
FRAME_S    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define FRAME_S    /
PER_SEC    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define PER_SEC(/
SEC    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define SEC(/
VEL_X    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define VEL_X    /
VEL_Y    /Other/Dev/SVN_AMIGA/SWAG2022/bak3.c    /^#define VEL_Y    /


5. From that shell, no go into "SH" by executing:
sh


6. Run the same SED command:
sed -"s|\([A-Za-z]\+\):|/\1/|p" tags1


7. Notice that there is no output

===

Wondering if anyone else can agree with my Step 7. On my X1000 step 7 produces the same output as step 4.

The file sizes and versions of SH and SED are the same on both machines.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: ASL file requester bug?
Quite a regular
Quite a regular



If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


SED does not produce output within SH on X5000 but does with X1000 [SOLVED]
Quite a regular
Quite a regular


I have the following script:
.KEY PAT/F
.BRA {
.
KET }
.DEFAULT 
PAT "(#?.c|#?.h|#?.cpp|#?.hpp|#?.hh|#?.cc|#?.cxx|#?.hxx)"
set CTAGS_LOC=Programs:ctags-5.8/ctags

IF EXISTS ${CTAGS_LOC}
    ${
CTAGS_LOC} -NR --format=--sort=no `SEARCH "" {PAT} FILE PATTERN ALL`
    
sh -"head -n 6 tags > RAM:T/tags_h6 ; tail +7 tags > RAM:T/tags_t6 ; Workbench:C/SORT RAM:T/tags_t6 RAM:T/tags_sorted CASE ; sed -i -n 's|\([A-Za-z]\+\):|/\1/|p' RAM:T/tags_sorted ; cat RAM:T/tags_h6 RAM:T/tags_sorted > tags"
    
delete >NILRAM:T/tags_h6 RAM:T/tags_t6 RAM:T/tags_sorted 
ELSE
    echo 
"Location of ${CTAGS_LOC} not found"
ENDIF


I have the same version of all of the programs being used in the script. And I find my self in the same old situation again: "It works on the X1000, but not the X5000!?"

If I go into some root project directory with source files and run "ctags" on the X1000, I get my CTAGS all populated and ready, on the X5000 with the very same script, with the very same tools, at the very same versions, I just get the top 6 lines of CTAGS meta-data!

Can someone else try this. You will just need to run protect +s and also install ctags (OS4Depot) and change the LOC of your ctags accordingly.

I just love these WTH moments.

==

So far, on the X5000 when I break things down, it seems to be the SED script that fails on the X5000, yet it works on the X1000 .... :S

==

I also I am not interested in improvements or questions of why I am doing things a certain way. By all means, lecture me later, I just firstly want to know why there is a difference here.


Edited by rjd324 on 2022/8/27 20:44:31
Edited by rjd324 on 2022/8/27 21:30:46
If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: My AmigaOne X5000 twins - I need some help and advice.
Quite a regular
Quite a regular


I looked at the pinouts for the 20 and 40 processors and it looks like a drop in replacement for the 20 with the 40 having functionality on previously dead pins.

Is it a simple CPU swap to upgrade to a 5040?

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: NTP Server (And general conflicting/confusing TIME features)
Quite a regular
Quite a regular


@jabirulo

Thanks once again for your help. I greatly appreciate it.

Quote:

Locale lets you set your timezone

This makes sense
Quote:

Timezone lets you finetune your timezone or adjust Locale settings

Sorry, but now I am confused. Can you give an example of finetuning your already set timezone. And, what does it mean to use "Timezone" to adjust Locale settings when surely you can just adjust your Locale settings using Locale?
Quote:

Time lets you sync with NTP server

I am not sure I agree with this. Time is essentially a front end to create environment variables (for which - btw, it does not do a very good job at) that are then, in turn, used by TimeGuard to handle the NTP updates.
Quote:

And Date sync time from commandline.

But I should not need to do that at all if using AEON's Time Prefs and TimeGuard. It is either one or the other. Either, do not use AEONS applications at all and use DATE to handle it, XOR use AEONs tools.

Please correct me if I am wrong.

Regards.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: NTP Server (And general conflicting/confusing TIME features)
Quite a regular
Quite a regular


Okay, so, in order to revert back to just using AmigaOS4 pure I need to ask these questions:

- Which program is responsible for creating a DST environment variable?
- Do I need a DST environment variable?
- Is "Timezone" something from AEON?
- Do I need "Timezone"? (ANSWER: CopyRight Hyperion, so not AEON, but, it is one of the many, many TIME type programs that ask if you want to switch to and from DST automatically - adding to the confusion)
- Is "Local" something from AEON? (ANSWER: CopyRight Hyperion, so not AEON. Again, an application that mentions the DST but with the actual CORRECT values for UK DST)
- Do I need "Locale"?
- Is "TimeGuard" something from AEON? (ANSWER: Yes, AEON. No idea what this does other than someone above mentioning that it handles NTP servers? I am presuming there is documentation for this thing that is automatically started? Actually, there is documentation. Let's have a read... http://wiki.amiga.org/index.php?title=TimeGuard)
- Do I need "TimeGuard"?

As for "Time", do I just need to get the latest one from the OS4 pure?

===
PS. Okay, I have read the documents http://wiki.amiga.org/index.php?title=TimeGuard. I see that Time Prefs acting as a front end for both $DST and $NTPSERVER that are, in turn, used by TimeGuard. Well, the setting of the $NTPSERVER works find with the front end, but the GUI setting of DST is completely bugged. If I choose the 1st Monday Jan and save, the $DST variable does not honour it and seems to add one to the day every time. I guess I can just ignore Prefs/Time and forcefully set the $NTPSERVER through Shell / Startup every boot up. From what I understand, TimeGuard uses the environment variables I mentioned above, and they are set by Time Preferences. So, cut out Time Preferences (since it seems to be bugged, at least for $DST) and just use startup-sequence to hack it in.

@amigakit

Despite the bug(s), presumably DST does not matter if you are using an NTP server.


Edited by rjd324 on 2022/8/23 19:43:20
Edited by rjd324 on 2022/8/23 19:52:31
Edited by rjd324 on 2022/8/23 19:53:23
Edited by rjd324 on 2022/8/23 20:06:48
If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: NTP Server (And general conflicting/confusing TIME features)
Quite a regular
Quite a regular


Yeah, woah, this is bugged. Even after manually setting the DST times I end up getting the results shown in this screen shot.

Resized Image

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: NTP Server (And general conflicting/confusing TIME features)
Quite a regular
Quite a regular


@kas1e

This maybe a rule I also adopt.

I guess I now need to figure out which parts of the Enhancer pack is need to delete do that I am only left with the original os4 things. Since I don't trust guis as much, I will probably try the script method instead. Failing that, I will literally write my own program to do what I want it to do.

Regardless, I appreciate the work from AEON! But, I am left wondering, why waste time writing clocks etc when the ones from OS4 are already mature and working.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: NTP Server
Quite a regular
Quite a regular


Starting to wonder if the Enhancer Time Stuff is actually worth having at all after reading this post https://www.amigans.net/modules/newbb/ ... id=105598#forumpost105598.

I do not even know what TimeGuard is, or why, when after selecting, in Prefs/Time, update AT BOOTTIME, neither the X1000 or X5000 were sync'd on boot up. I still needed to manually go into Prefs/Time on both machines and manually press "Get time now". I am not sure if the Prefs/Time gives any useful information through serial or not, certainy nothing to stdout/stderr when invoking it from command line.

At this point, it may be easier to disable all time features and literally write something on my own to handle all of this due to the confusion.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: NTP Server
Quite a regular
Quite a regular


Actually, now I am even more confused.

So, my LOCALE was not correct on my X5. So, I have now set it up and saved it.

In locale the DST is reporting correct as per UK.

But, in Prefs/Time when I click the "Automatically adjust clock for Daylight Saving Time" it reports the 28th November which is not consistent with what LOCALE reports.

Also, on my X1000 I just went to Time/Prefs->Advanced Options and entered "pool.ntp.org" and it seemed to get the exact time. I clicked on SAVE and away we go.

On the X5 - nothing happens - it is still a few minutes ahead.

Woah, now when I re-enter Prefs/Time, the DST ending date has changed even more. Now it says 28th December.

No idea what is happening here.

===
More:

So, now - for some reason - it looks like the pool.ntp.org worked on the X5000. I seem to have the same time on both machines. Seems massively hit-miss, have no idea why.

type ENV:TZONE on both machines gives GMT0BST-1.

Time version on X1000: 53.21
Time version on X5000: 53.22

===
More:

Opened Prefs/Time on X5000 and once more DST will end on another different day

===

X1000:
echo $DST:
BEGIN M3.5.0/0:0:0 END M10.5.0/0:0:0 ACTIVE OFFSET 3600


X5000:
echo $DST:
BEGIN M5.5.2/0:0:0 END M12.5.2/0:0:0 ACTIVE OFFSET 3600


Why?


Edited by rjd324 on 2022/8/23 0:45:57
If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: NTP Server
Quite a regular
Quite a regular


Actually, when I read this thread: https://www.amigans.net/modules/newbb/viewtopic.php?topic_id=4911

It possibly explains why nothing happens when I enter the server details in Prefs/Time->Advanced Options.

You would think that the GUI would be enough. But, having read that thread, it seems that this is merely a way to save the server address. From there, you then have to use "Date SERVER PREFS" ? To pull down the latest time?

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: NTP Server
Quite a regular
Quite a regular


Hi there, thank you for a detailed guide.

The issue is that "Time" in my "Prefs" has no such tab named "Remote".

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


What is the canonical way of disabling screen blanker through C?
Quite a regular
Quite a regular


What is the canonical way of disabling screen blanker through C for a particular application?

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: Do People Still Use IRC?
Quite a regular
Quite a regular


X5000:
Resized Image

You can see the issue I have with this. I do not understand it. Anyone can help?

My X1000 just works. Here is the X1000 output:

[14:42:46] [ConnectAttempting to connect to irc.amigaworld.net (6667)
[
14:42:46] [ServerConnected
[14:42:46] -DE.AmigaWorld.net- *** Looking up your hostname...
[
14:42:46] -DE.AmigaWorld.net- *** Checking Ident
[14:42:46] -DE.AmigaWorld.net- *** Found your hostname
[14:42:56] -DE.AmigaWorld.net- *** No Ident response
[14:42:56] [Server] :DE.AmigaWorld.net 001 rjd324_x1000 :Welcome to the AmigaWorld.net Internet Relay
Chat Network rjd324_x1000


The difference is only in my usernames.

What the hell...

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Quite a regular
Quite a regular


@kas1e
I also got a black screen with 100% CPU utilisation at first. This was because I put the binary in a folder one level up. Maybe you made the same mistake, but the AOS4 binary and configuration file should replace the ones from the MorphOS.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


NTP Server (And general conflicting/confusing TIME features) (SOLVED)
Quite a regular
Quite a regular


Presumably I am the only person who cannot get this to work?

I have tried to NTP servers suggested (cannot remember them now).

But, my X5 is a little ahead of BST, my X1 a little behind.

Can anyone give a guide for a dumb-ass?


Edited by rjd324 on 2022/8/23 9:30:16
Edited by rjd324 on 2022/9/5 0:35:40
If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: Amigans Discord
Quite a regular
Quite a regular


I would like to second the suggestion from @Chris.

Would it be much work?

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: AmigaOne X1000 - 10 years ago this week.
Quite a regular
Quite a regular


Amiga is.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top


Re: Project : Compiling Vanilla-Conquer (C&C) for AmigaOS4 - Help needed
Quite a regular
Quite a regular


Thanks, working well on x5000.

Alt+Enter for fullscreen.

If liberty means anything at all, it means the right to tell people what they do not want to hear.
George Orwell.
Go to top



TopTop
« 1 ... 15 16 17 (18) 19 20 21 ... 36 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project