Unix to Linux Conversions?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Unix to Linux Conversions?
# 1  
Old 02-20-2009
Unix to Linux Conversions?

I have over 800 scripts (Korn and Perl) wrote on a Unix platform (Solaris) that I need to covert to a Linux platform (Redhat). All the path's and binaries need review. Are there any tools out there that would simplify or assist me with this conversion?
# 2  
Old 02-21-2009
Hi.

I use a perl script fixin, listed in the perl 4 (Camel) book by O'Reilly for fixing up paths. On the net, this looks like the one I use: http://cars9.uchicago.edu/~ravel/tal...rams/bin/fixin

Try it on a few simple test cases first, of course.

Note that it looks at the shebang line generally, not just perl scripts, so shell scripts, awk scripts, all may be processed.

For example, this script on file b1:
Code:
#!gawk -f
BEGIN   { print " Hello, world." ; exit }

produces an error when run:
Code:
% ./b1
./b1: Command not found.

After we use:
Code:
% fixin b1
Changing b1 to /usr/bin/gawk

we can rerun, and see:
Code:
% ./b1
 Hello, world.

Good luck ... cheers, drl
# 3  
Old 02-22-2009
Yes there are a number of tools available. Do a Web seach for "Solaris Linux Porting Kit" or "Solaris Linux Migration Kit"
# 4  
Old 02-23-2009
The problem I'm having is that the only two Sun to Linux Porting kits (IBM and HP) available on the net require a customer login. Does anyone have the porting kit or the link to download directly? Thanks for the information guys!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. What is on Your Mind?

YouTube: Forum Moderation @UNIX.com | The UNIX and Linux Forums

Forum Moderation @UNIX.com | The UNIX and Linux Forums https://youtu.be/WGwgibE4Rq0 Also note: In the video I mentioned removing legacy menu items in the ModCP which are unused. I have already "CSS'ed out" the unused menu items: ... (0 Replies)
Discussion started by: Neo
0 Replies

2. Post Here to Contact Site Administrators and Moderators

VIP Membership - The UNIX and Linux Forums - Get Your UNIX.COM Email Address Here

We work hard to make The UNIX and Linux Forums one of the best UNIX and Linux knowledge sources on the net. The site is certainly one of the top UNIX and Linux Q&A sites on the web. In order to provide certain members the best quality account services, you can now get some great extra features by... (2 Replies)
Discussion started by: Neo
2 Replies

3. Fedora

Which is the better platform to learn UNIX/Linux (Kali Linux Vs. Red Hat or other)?

I just started a new semester and I started my UNIX class yesterday. I've already decided to use python along with my learning process but what I really want to use with it is Kali as my UNIX/Linux platform to learn off of since I already wanted to learn Cyber Sec. anyways. I just wanted to know if... (12 Replies)
Discussion started by: ApacheOmega
12 Replies

4. UNIX for Advanced & Expert Users

HD GB conversions

Sorry if this is in the wrong area. I am not sure where to put this question. HD manufacturers usually use the 1000 scale for measuring their HD capacity instead of 1024 which is way more common with computers. What would 750 GB on the 1000 scale convert to on the 1024 scale and how would you... (1 Reply)
Discussion started by: cokedude
1 Replies

5. UNIX for Advanced & Expert Users

Vi line endings conversions

I was reading these 2 articles. Why does the wikia one think :e ++ff=dos? Or am I just misunderstanding it? :e ++ff=unix :e ++ff=dos File format - Vim Tips Wiki Managing/Munging Line-Endings with Vi/Vim | Jeet Sukumaran (1 Reply)
Discussion started by: cokedude
1 Replies

6. Shell Programming and Scripting

Perl date conversions

Is there a perl date conversion that will convert this type of date: 2008/100:01:56:10.000 to this type of date: 2008 04 09 01 56 10 000 I am using this right now: sub jd2date { $space=" "; $zero="0"; my ($jd) = @_; if (($jd<1) || ($jd>782028)) { print "julian... (5 Replies)
Discussion started by: ajgwin
5 Replies

7. UNIX for Advanced & Expert Users

Time Calculations & Conversions

I have script that runs based on time variables passed in the command line. The first command argument is a timer, in seconds, of how often to execute a certain loop in the script. The second command argument is the end time of the script, in military time. Below is an example of the command line:... (1 Reply)
Discussion started by: Nysif Steve
1 Replies

8. Answers to Frequently Asked Questions

What is unix and is linux a unix system

Unix is the name of an operating system. And unix is a registered trademark. This is what makes things murky. One of my favorite books is The Design and Implementation of the 4.3BSD UNIX Operating System. That book is out of print, but a newer book is available: The Design and Implementation... (0 Replies)
Discussion started by: Perderabo
0 Replies

9. UNIX for Dummies Questions & Answers

Linux is Unix???

Could anyone explain if Linux is Unix? I'm a newbie here, just installed Oracle 8i on Redhat 7.2. (4 Replies)
Discussion started by: Prettyman
4 Replies

10. Where do I download LINUX & UNIX?

where is unix or linux?

this is going to sound really stupid, but i am new to unix and only have a tiny bit of experience with it such as typing in commands. that's about it. where can i get a copy of the unix software? isn't free to download somewhere? (3 Replies)
Discussion started by: Crimzon
3 Replies
Login or Register to Ask a Question