• Welcome to OS2World OLD-STATIC-BACKUP Forum.
 

News:

This is an old OS2World backup forum for reference only. IT IS READ ONLY!!!

If you need help with OS/2 - eComStation visit http://www.os2world.com/forum

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Fahrvenugen

#1
Rexx / Detecting french accents
2011.08.17, 23:53:47
I've got a REXX script where a portion of it I use the TRANSLATE function to strip out unwanted characters from a string and replace them with nothing.  The code looks like:

sentence = TRANSLATE(sentence,"","/-?&`!().,")

Essentially the output of this script gets pushed to another utility that has difficulties with some of these characters, so I strip them out first.

Recently I've run into a situation where the sentence variable can end up with a french accent character.  I'd like to be able to add these characters into the translate command so they also get stripped out.

Does anyone know how to add this type of character so REXX will recognize it?

Thanks
#2
Rexx / How to monitor serial port in REXX?
2010.01.21, 23:13:56
Hi,

I'm probably overlooking something very obvious, but I need to find a way to be able to monitor the status of the CTS line on the serial port from within a REXX script.  I've got an external device which will toggle this status, and I need to write a script to have a system do one thing if CTS is high, another if CTS is low.

Unfortunately I havn't found this yet.  Anyone know how to do this?  Again, its probably simple, and I'm just overlooking something.

Thanks.
#3
Internet / Frustrations with Apache
2009.06.28, 21:33:04
Hi,

I'm posting this here because I'm hoping that maybe someone has run into this situation before.

One of the sites that I manage has 2 systems running OS/2, (actually, one is running a Warp 4 w/FP15, the other running eCS 1.2MR).  One of the tasks that each server is running includes a copy of MySQL, PHP, and a web server.  Up to now, the server that I was using was Dink's Web/2 with PHP as a CGI, this configuration has run flawlessly for approximately 2 years at that site.

We're in the process of switching one of our web sites that we host over to Wordpress, and have a need to use the aliased URL's that Apache can take advantage of (but Web/2 can't), so in order for this I switched over to Apache 2.2.11.

Since switching, I've run into endless difficulties with the setup.  It seems that what is happening is Apache over a brief period of time (less then 6 hours) and use open up a bunch of sockets, leave them open, and then freeze up.  Once frozen it'll still serve up static TXT and HTML files, but any type of PHP will just hang and never load up the web page.

If I try and kill Apache (with CTRL-C, or a process killer, including the death9 killer that can be activated through loading the xfree86 driver in config.sys) it'll hang Apache upon exit, it won't die.  Once Apache is hung, if I try and restart a new Apache it won't serve anything.  I know it has released the port as I can start up Dink's Web/2 and it'll run happily.  But to make things worse, once Apache hangs I can't soft-reboot the computer with a CTRL-ALT-DEL or a setboot /b (or any of the other ways to reboot the computer).  If this is tried it'll pop up the "rebooting" window then hang the whole system.  The only way to reboot is with the reset button / killing the power.

For testing purposes I tried both machines I have there, plus I tried setting up a spare (3rd) machine where its only purpose is Apache, MySQL, and PHP, running nothing else, fresh install.  And I have experienced the same result.

For Apache, I've tried Versions 2.2.11, 2.2.10, 2.2.9, 2.2.8, and 2.2.4.  For PHP I've tried Versions 5.2.10, 5.2.9, 5.2.8, 5.2.4. It doesn't seem to make much difference as to the version.  I've also tried setting up PHP within Apache using the PHP Apache module, plus I tried running PHP as a CGI (thinking that since Web/2 runs PHP as a CGI and Web/2 has never had any issues with PHP stuff, it might be something with the Apache DLL PHP module).  I ran into the same difficulty with both setups within Apache.

For TCP/IP, when I run inetver it comes up with everything at the 6.3100 version level.

Has anyone else run into this type of issue?  Could it be something in the TCP/IP stack causing the difficulty? 

Thanks,

#4
Hi,

I'm in the middle of a project where I'm trying to reduce the number of computers that I'm using at one of the locations I manage, and I'm trying to figure out if I can add one more task to one of the OS/2 machines I have running there and then be able to reallocate one of the machines I have doing almost nothing.

What I need to do is to either 1) Do 2 different things with the audio coming into the Line In on the sound card, or
2) Use 2 different sound cards in a single machine under Warp or eCS.

What I currently have is 2 computers set up  both doing similar things.  One is running Warp 4.5 and is acting as an audio logger - all of the audio coming into the Line In on the sound card gets dumped to an MP3 file, and every hour it creates a new file.  This is done via a simple REXX script that pipes the output from DRECORD to LAME, using a command such as:

drecord CON | lame -r -x - mp3file.mp3

The other machine is running Windows 2003, and is streaming the same audio via its Line In using WinAmp to a Shoutcast server.

What I want to try is putting the Shoutcast stream on to the Warp box.

I already have a copy of Icecast running on another Warp machine that I'd stream to.  And I've found that I can create the stream and stream it to the icecast server (in the example located below on 192.168.0.20) with something like:

drecord CON | lame -b 128 -r -x - | shout 192.168.0.20 -a -x -P Password

Or using playrec:

playrec con /r | lame -b 128 -r - | shout 192.168.0.20 -a -x -P Password

Since it is the same audio going to both, I'd like to be able to just grab the audio from the same sound card and dump it to both shout and to the mp3 file, but this doesn't work.  Even if I use the /S switch in drecord (which claims it allows for shared use of the same sound card), I'm  finding as soon as I start up another application to pull the audio, it'll stop grabbing audio on whichever I start first.

The second thought I had was just to plug 2 sound cards into the machine and feed the same audio into Line IN on each one.  But I've had trouble getting 2 sound cards to work.  If I use the Uniaudio drivers it seems to either trap on me upon boot, or if I use an older version of Uniaudio it just won't see both cards (only sees the first), even though both will work individually under Uniaudio.

I've also tried with a Soundblaster Live card with the SBLIVE drivers and had the same result/

Does anyone know if  it is possible to get Warp to run with 2 audio cards?  I know in theory it is possible, however this is the first time I've ever tried.

Also, since app that I'm using audio with dumps the audio through stdout and stdin at some point, even though they are started up in different sessions, does anyone know if this is likely to cause a problem? 

Or am I just trying to make things too difficult for me, should I just give up and keep running more machines then I really need?

I should mention (for those who think of it), I think that my Warp machine should have little difficulty generating both MP3 streams (one going to hard disk, the other going to an Icecast server).  Currently just to dump the MP3 to hard disk it only uses between 10 - 20%  of the CPU, so I believe it should be able to handle doing both.  But I could find out differently if I ever get it to work.

Thanks
#5
Hi,

I have recently been trying to set up eCS (or OS/2 Warp 4 for that matter) on an older Adaptec PCI AAA-131U2 card, which shows up as an Array1000 / 7880 chipset based SCSI card.  It has hardware RAID, and I've been trying to get it to work set up with RAID-5.  the specs on the card are at:

http://www.adaptec.com/en-US/support/_eol/aaa_raid/AAA-131U2/

From what I can tell, this chipset should work with the AIC7870.add driver.  I've found references on Adaptec's website saying that this card is fully supported on OS/2 using drivers that came on the OS/2 install CD.

My difficulty is that for some reason I can't get OS/2 to recognize the full size of an array.  When I've tried with Warp 4, if the array is already configured and formatted (using the Adaptec utility and formatted with a windows 2000 or xp disc), if I try and reformat it to HPFS, then format gives me an error:

SYS0529: Not enough memory is available to run FORMAT

There is enough memory on this system, right now I've got it set up with 128 MB.

If I already have a partition set up and formatted (setting it up and formatting it with Windows 2000 / XP after having built the array using Adaptec's utility) OS/2's fdisk (the updated one that was fixed for the large disk partition sizes) can *see* that there is an NTFS partition of 34GB - the full size of the array, but format will not let me format (same error as above).  If I try and rebuild the partition with OS/2's fdisk, once I delete the partition that is there, the most it will let me create is an 8 GB partition.  If I create an 8 GB partition, I can then format it, but this is not what I want.

For further testing, I decided to just install a single 18GB SCSI drive on the card, not setting up any type of RAID array.  I still ran into the situation, the most that OS/2 will recognize is 8 GB.

I tried to get eCS to work, however eCS 1.2 MR was unable to recognize any drives.  I suspect there may be something that is not working properly with the AIC7870.ADD driver in eCS 1.2

For test purposes, I've tried both RAID-5 and RAID-1 arrays with a selection of  18.2 GB drives.  I know that everything works as it should - I've been able to successfully install Windows 2000 and XP on it, and it recognizes the full size of the array and everything seems to work.  I'm just having issues finding the correct driver for OS/2.

Does anyone have any suggestions?

#6
Hi,

Has anyone tried to do any type of comparison of Samba versus shares on Peer on eCS / Warp 4 for items such as speed, reliability, etc?  I've got a machine currently running Peer with shares turned on, doing basic file serving for a small office (9 computers).  I'm debating switching it over to running Samba, but just wondering if anyone has done any type of benchmark to see which is faster / more reliable (of course, the system running Peer has never had any issues with reliability).

#7
Hi,

I've got an older Warp 4 machine that I've managed to forget the password on its peer setup.

Anyone know of a way to reset this easily, or am I going to have to reinstall peer  on it?

Thanks,