My account: Login | Sign Up
Loading... 

Creating Platform independent scripts(Solaris and Linux) | Thread profile

Thread profile page for "Creating Platform independent scripts(Solaris and Linux)" on http://www.javaranch.com. This report page is a snippet summary view from a single thread "Creating Platform independent scripts(Solaris and Linux)", located on the Message Board at http://www.javaranch.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity, which are reported in a table below. Additional thread profile information is also shown in the following ways:

1) Top Contributing Authors
2) Related Threads on "eBay Auctions"
3) Related Threads on Other Sites

Warning: These statistics are generated using 'best efforts' and can experience delays and reporting errors at times. Please note that such statistics do not constitute a thread's popularity and/or exact posting volumes at any given reporting period.

Title: Creating Platform independent scripts(Solaris and Linux)
Site: JavaRanch Big Moose Saloon  JavaRanch Big Moose Saloon - site profile
Forum: Linux / UNIX  Linux / UNIX - forum profile
Total authors: 5 authors
Total thread posts: 18 posts
Thread activity: no new posts during last week
Domain info for: javaranch.com

Thread posts in Creating Platform independent scripts(Solaris and Linux):

1. 
Started 1 month, 2 weeks ago (2008-10-03 11:30:00)  by Ricky Boxon
( Hi all, I'm not able to figure it out how i will make it UNIX platform independent. Mainly\(Solaris and Linux\) Below script runs smoothly in Linux but in Solaris its showing lots of syntax errors like its not able to reco. if statements even. What i need to do so that the syntax will be platform independent code: #!/bin/sh #,# WAS ROOT PATH SET BELOW #,WAS_ROOT=/opt/IBM/WebSphere/...
Size: 3,267 bytes
Customize:  Customize "Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
2. 
Started 1 month, 2 weeks ago (2008-10-03 11:30:00)  by Ricky Rosan
( Hi all, I'm not able to figure it out how i will make it UNIX platform independent. Mainly\(Solaris and Linux\) Below script runs smoothly in Linux but in Solaris its showing lots of syntax errors like its not able to reco. if statements even. What i need to do so that the syntax will be platform independent code: #!/bin/sh #,# WAS ROOT PATH SET BELOW #,WAS_ROOT=/opt/IBM/WebSphere/...
Size: 3,267 bytes
Customize:  Customize "<b>Reply 1</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
3. 
Started 1 month, 2 weeks ago (2008-10-03 12:09:00)  by Charles Lyons
( Is this written for Bash or another shell? It looks very much like the former to me, so wouldn't it be better off with a shebang similar to \(obviously depending on the actual paths on your system\): code: #!/bin/bash rather than just /bin/sh? It may be that Solaris is using a different shell \(either Bourne itself, or another one symlinked to /bin/sh\) than your Linux install. That'd ...
Size: 1,838 bytes
Customize:  Customize "<b>Reply 2</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
4. 
Started 1 month, 2 weeks ago (2008-10-03 13:13:00)  by Ricky Rosan
( Hi, You are right. Though I've limited access to My solaris machine which is at remote location. I just did a smoke test and found that after changing to bash it not giving any syntax errors minimum.I think its ok now. Once I will get full test on Solaris I'll let you know. Thanks a lot for suggestions. Ricky , Learning Knows No Age Limit... Posts: 27 | Registered: Aug 2008
Size: 576 bytes
Customize:  Customize "<b>Reply 3</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
5. 
Started 1 month, 2 weeks ago (2008-10-03 13:13:00)  by Ricky Boxon
( Hi, You are right. Though I've limited access to My solaris machine which is at remote location. I just did a smoke test and found that after changing to bash it not giving any syntax errors minimum.I think its ok now. Once I will get full test on Solaris I'll let you know. Thanks a lot for suggestions. Ricky , Learning Knows No Age Limit... Posts: 40 | Registered: Aug 2008
Size: 576 bytes
Customize:  Customize "<b>Reply 4</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
6. 
Started 1 month, 2 weeks ago (2008-10-04 09:28:00)  by Ricky Boxon
( Hi, I back again. I ran this script..and it ran well without syntax errors but am facing a new problem. I designed it to take input from command line like ./install.sh wsadmin wspassword express where $1 will be wsadmin and $2 will be wspassword and $3 will be express but i think its not able to compare it. what ever i put in command line its directly taking me to last else statement. ...
Size: 1,169 bytes
Customize:  Customize "<b>Reply 5</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
7. 
Started 1 month, 2 weeks ago (2008-10-04 11:01:00)  by Andrew Monkhouse
( It's hard to tell if your script above is merely missing a brace to close off the starton\(\) function, or whether there is more code missing. I am going with the idea that your script is complete, except for that syntax error, which means that the problem is not in the passing / parsing of parameters - it appears to me to be having troubles with determining whether WebSphere is running or ...
Size: 1,246 bytes
Customize:  Customize "<b>Reply 6</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
8. 
Started 1 month, 2 weeks ago (2008-10-04 11:31:00)  by Ricky Boxon
( Ohh sorry I forgot to mention which if else stmts Its starton if else stmts. and websphere is running as its able to give me the last else stmt's output. else it would have told me that WAS is not running. As it's going to code: starton | tee install_$DATE.log Script_Usage1 > > install_$DATE.log Block so its mean that websphere is running. But in that function its not ...
Size: 1,550 bytes
Customize:  Customize "<b>Reply 7</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
9. 
Started 1 month, 2 weeks ago (2008-10-04 11:48:00)  by Ricky Boxon
( Hey seems I found the problem. I added echo "1st param:$1 2nd param:$2" to check whether the command line args are available inside the starton function and ran the script as ./install.sh myID myPWD and i found that the echo stmt its showing as below: 1st param: 2nd param: so i think all the arguments I'm passing is not available inside the starton function. Thats why its goin directly to ...
Size: 1,481 bytes
Customize:  Customize "<b>Reply 8</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
10. 
Started 1 month, 2 weeks ago (2008-10-04 11:50:00)  by Ricky Boxon
( Hi Andrew Monkhouse That last close brace i missed during posting my code. Sorry for that. , Learning Knows No Age Limit... Posts: 40 | Registered: Aug 2008
Size: 324 bytes
Customize:  Customize "<b>Reply 9</b>: Creating Platform independent scripts(Solaris and Linux) :: Linux / UNIX :: JavaRanch Big Moose Saloon"
 

Top contributing authors for Creating Platform independent scripts(Solaris and Linux)

Name Posts
Ricky Boxon 10
Andrew Monkhouse 3
Ricky Rosan 2
Charles Lyons 2
Tim Holloway 1