The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
when porting from HP-UX to Linux amitpansuria Linux 1 04-18-2008 03:08 AM
porting solaris to BSD yngwie High Level Programming 1 07-10-2007 06:08 PM
Porting of Shell to AIX dhanamurthy High Level Programming 5 03-07-2007 10:37 AM
porting areef4u UNIX for Advanced & Expert Users 10 08-03-2006 09:32 AM
Porting of Windows written unix scripts to unix platform tamilselvi UNIX for Advanced & Expert Users 7 10-02-2002 11:55 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 12-11-2001
Cameron's Avatar
Cameron Cameron is offline Forum Advisor  
Registered User
  
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 500
Unhappy Porting Scripts.

Hi all,

Figured this would be a good a place (well more apropriate) to ask this ... What considerations are necesary to port a script from one system to another?

The below link is a script that I'm currently working on at work. The work system is a SCO box and I'm slowly becoming familar with the OS. At home I've just installed Mandrake 8.0 and having trouble trying to run the script.

Any suggestions?

Script name: monthly_sar

Thanks in advance.

Cheers,
Cameron
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Forgot to mention:
Having to type ". ./monthly_sar au" just to get any feedback.

Again thanks for any help.

Last edited by Cameron; 12-11-2001 at 07:06 AM..
  #2 (permalink)  
Old 12-11-2001
LivinFree's Avatar
LivinFree LivinFree is offline Forum Advisor  
Goober Extraordinaire
  
 

Join Date: Jul 2001
Location: Portland, OR, USA
Posts: 1,584
Well, what feedback are you getting when you source (. ./script_name) your script? You may have to chmod +x your script also, to get it to execute, then maybe even type ./script_name (only one "."), depencing on your PATH.

Also, do you have the sar command installed? Are the pathnames on your local workstation the exact same as the original system? If you're still having trouble, add the command:
set +x
right under the first line (#!/bin/bash). It will tell you what's going on, step by excruciating step...

Post back any more output / details, and I'm sure one of us can figure this out...

--
LivinFree
Mr. Burns - "I want to be loved, Homer"...
Homer - "... Well... I'll need some beer..."
Closed Thread

Bookmarks

Tags
linux mandrake, sco, script invocation, shell scripting

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:40 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0