LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-02-2011, 01:54 PM   #1
Glen Tyan
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Rep: Reputation: 0
Redhat 8.0 Scripts machine upgrade


Hello,

I have a whole raft of my own scripts running on a very old PC and use the serial ports for dumb VT100 terminals. Backup to /dev/fd0 requires 3 floppies and I'd like to port the whole thing on to a PC that I can backup with more modern hardware. I'm using redhat 8.0. Can anyone suggest how I go about this.

Thanks,
Glen.
 
Old 11-02-2011, 02:30 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Redhat 8.0 is ancient. Hopefully with the new hardware you're going to upgrade to a more modern OS. After RedHat 9.0 the distribution was forked into RHEL (RedHat Enterprise Linux which you have to pay a subscription to update) and Fedora which is free but changes rapidly so requires you to upgrade every 6 months or so.

If you want the newest RHEL OS and don't want to upgrade frequently or pay for subscription you can get CentOS (latest is version 6.x). CentOS is a binary compile from RHEL source so has a much longer lifecycle.

As to porting - scripts generally work the same - the devil will be in the details as commands called by the scripts may be different or no longer exist. My suggestion would be to build your new box, install your new OS then use scp to copy the old scripts to the new box into a directory like /root/oldscripts. Test each of the scripts from /root/oldscripts and troubleshoot the ones that no longer work. Thinks have changed significantly since RedHat 8.0 including a move from kernel 2.4.x to kernel 2.6.x. You might think that staying with RedHat 8.0 is a good idea but no one is making security or bug fixes for it so your system is ripe for hacking.
 
Old 11-02-2011, 03:13 PM   #3
Glen Tyan
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Many thanks for the reply; My setup is not online and never has been so hacking is not an issue. I use them for incidental mathematical calculations that I once wrote in C, Solaris Unix and VMS before I retired. Redhat 8.0 performs all the things I want it to do very well and the thought of debugging nearly 30 scripts a 1000 lines long each is not a sleep friendly option. Is there scope to improve backing things up to a USB stick. I'm an expert on valves if that helps :-)

Thanks,
Glen.
 
Old 11-02-2011, 04:18 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Besides the security issues (which don't apply to you, as it seems) I doubt that you will get support for new hardware on such an old version.
 
Old 11-02-2011, 05:38 PM   #5
Glen Tyan
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks again for the reply ..... looks like I'll need to try a new build and experiment with porting. Any advice on this would be most welcome.

Regards,
Glen.
 
Old 11-02-2011, 07:02 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,356

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
As per MensaWater, scripts (depending on lang) generally work the same, but it depends; what lang are you talking about.
Also, as above, what sort of things/programs do these scripts call.
You can easily copy the scripts over via generic methods eg scp, ftp, email even...
Its the testing that'll be interesting; probably won't be that bad if you're consistent in your code ie one 'fix' may fix many scripts...

Personally I'd also recommend Centos as a replacement OS.

Last edited by chrism01; 11-02-2011 at 07:06 PM.
 
Old 11-03-2011, 08:13 AM   #7
Glen Tyan
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks Chris, really do appreciate your input. My scripts are simple menu driven ones like: echo, sed, awk, sort, cut, uniq, grep, printf etc. Awk does all the maths as it's closest to my C programming days. Must say I find the whole concept of porting up quite daunting having found the Centos a downloadable item. Ideally if I could download Centos onto a CD from my Windows machine and just install the basics to run on my offline machine that would be ideal and any pointers would be very helpful.

Thanks,
Glen.
 
Old 11-03-2011, 08:35 AM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
There's nothing on TV in Brisbane at this time of night, so Chris should respond shortly ....
Download and burning the iso on Windoze is fine - try infrarecorder if you need some (free, good) software for Windoze.

Copying your stuff to USB should work - just make sure it (the USB key) is formatted as [V]FAT. Redhat 8 is real old and may not have the NTFS support - especially for write.
 
Old 11-03-2011, 08:44 AM   #9
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Using core utils such as sed & awk, you may not need to make many changes to your scripts. The problem some people have is the differences between gnu versions and posix versions of some utilities such as sed.
 
Old 11-03-2011, 09:05 AM   #10
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
To add to that. Here we successfully migrated scripts and applications from RedHat 7.3 and RedHat 9.0 to RHEL4 then RHEL5 without excessive bother on the scripts and are now using RHEL6 for some things. In fact we've even moved from old FreeBSD servers to RHEL without much issue with scripts. As noted by me and other posters the basic tools (awk, echo, ls, etc...) are not going to be an issue. Even sed may not be if you're not doing anything too complicated with it.

By the way if you're familiar with C and awk then you might want to look at Perl as your scripting language for future scripts as it has its roots in these things.
 
Old 11-03-2011, 03:56 PM   #11
Glen Tyan
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks to all who have replied to this thread and I'm blown away by the generosity of people's time. I'll need to go and think abourt some of the replies though :-) Perl wise I've done a little but all this scripting came more by accident than design as it started in 2004 and just sort of grew ... If I download centos I'll verify the copy using md5sum and try a straight porting to a spare machine build. I just wish Redhat 8 would support USB writing ...

My thanks to all,
Glen.
 
Old 11-03-2011, 06:47 PM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
I would think USB should work. Are you saying it (definitely) doesn't ?. Might be slow, but should be available.
 
Old 11-03-2011, 08:26 PM   #13
goossen
Member
 
Registered: May 2006
Location: Bayern, Germany
Distribution: Many
Posts: 224

Rep: Reputation: 41
Your kernel must compiled with support for:
- SCSI disk
- USB Support
- USB Mass support

Here you can read more:
http://www.tldp.org/HOWTO/Flash-Memory-HOWTO/index.html

The HOWTO was written during RedHat golden age, so I guess you will find it useful.
 
Old 11-04-2011, 12:54 PM   #14
Glen Tyan
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks again to the new contributors ... I can confirm mass storage doesn't work, spent hours trying. I have one development machine, a main and a standby. All my scripts are sum'd and the RH8 a professional CD set.

Regards to all,
Glen.
 
Old 02-25-2012, 01:36 PM   #15
Glen Tyan
LQ Newbie
 
Registered: Feb 2011
Posts: 11

Original Poster
Rep: Reputation: 0
Getting there ...

Dear All,

I know this thread is old but I've taken your advice and I've found Fedora 16 to replace my Redhat 8 which appears to be understanding my scripts, short term however I need get the floppy drive working and despite my best efforts I've failed. Can anyone help ? ..... I tried Ubuntu 11:10 and the floppy works there fine but Fedora is what I want.

Best Regards,
Glen
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Error in getting Hostname&ipaddress of remote machine using shell scripts jsaravana87 Linux - Server 4 09-02-2011 11:56 AM
[SOLVED] how can i get ipaddress of my machine by shell scripts jsaravana87 Linux - Server 2 09-01-2011 06:26 AM
Using upgraded machine nearby to upgrade a machine? kedar.mhaswade Linux - General 1 11-09-2009 12:16 AM
batch deploy file/changes/scripts to a couple if machine Rupertt Linux - Software 1 08-19-2008 07:25 AM
Problem to make scripts on a VMWARE Vitual Machine pedrosan Linux - Newbie 3 04-20-2004 02:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:18 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration