The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Problem in running bash shell commands on HP-UX machine abhishek0071 UNIX for Advanced & Expert Users 6 02-15-2008 11:30 AM
Script doesn't work, but commands inside work cheongww UNIX for Dummies Questions & Answers 2 11-14-2006 06:52 PM
Why do basic unix commands not work in BASH PixelLover UNIX for Dummies Questions & Answers 10 05-23-2006 12:10 PM
how do I get my arrow keys to work for looking thru my PREVIOUS UNIX COMMANDS spotnis UNIX for Dummies Questions & Answers 11 09-13-2005 10:22 PM
old unix machine at work model # wy-50 marycarroll UNIX for Dummies Questions & Answers 1 09-09-2001 09:06 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-11-2008
Registered User
 

Join Date: May 2008
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Will solaris commands work on linux machine

Earlier we are using solaris machine to run our script which is having korn shell. Due to decommision of that machine we have to switch to Linux machine which is also having korn shell.

Do the commands on solaris machine will also work on linux machine or should i have to change any thing? One thing in common is both of them are having korn shell only.

It's very urgent faster responses are appreciated.

Thanks,
...
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-12-2008
DukeNuke2's Avatar
Soulman (Moderator)
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,128
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
depends on how complex the script is... but i think it won't work. linux uses gnu tools while solaris not! so the output of the commands is different and that might cause problems.
Reply With Quote
  #3 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: Jun 2007
Location: Pennsylvania
Posts: 39
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
It probably will not work.

When I write scripts to work on AIX and Linux, I have to write it for AIX - test it - then rewrite it so it works on Linux.

I'm not smart enough to just write cross-platform right off the bat.
Reply With Quote
  #4 (permalink)  
Old 05-12-2008
Registered User
 

Join Date: May 2008
Posts: 2
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Even though both the machines are having same shell also will they won't work????
Reply With Quote
  #5 (permalink)  
Old 05-12-2008
DukeNuke2's Avatar
Soulman (Moderator)
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 1,128
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Quote:
Originally Posted by sanapart View Post
Even though both the machines are having same shell also will they won't work????
most commands you use are not shell-build-in commands... so, no! it won't work. but you can give it a try for sure...
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
"inappropriate ioctl for device" 421 service not available, remote server has closed connection ^m arg list too long ascii eof autosys awk trim bash eval bash exec bash for loop boot: cannot open kernel/sparcv9/unix close_wait command copy/move folder in unix curses.h dead.letter export display find grep grep multiple lines grep or grep recursive grep unique inappropriate ioctl for device logrotate.conf lynx javascript mailx attachment mget mtime perl array length ping port read awk output into multiple variables replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude unix unix .profile unix com unix forum unix forums unix interview questions unix memory usage unix mtime unix simulator unix.com vi tab size while loop within while loop shell script


All times are GMT -7. The time now is 03:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101