The UNIX and Linux Forums  

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


BSD BSD, sometimes called Berkeley Unix, is a Unix operating system developed by the Computer Systems Research Group of the UC Berkeley.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
trouble in running script cahyo3074 Shell Programming and Scripting 2 05-20-2008 09:22 PM
X trouble izua UNIX for Dummies Questions & Answers 0 01-03-2007 02:19 PM
How to prevent job1 from running while job2 is running.. tikang UNIX for Advanced & Expert Users 3 09-14-2006 02:40 AM
The trouble about SU ... nulnul7 UNIX for Dummies Questions & Answers 4 10-05-2005 08:39 AM
trouble awk UNIX Desktop for Dummies Questions & Answers 1 11-22-2002 06:51 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-02-2005
Registered User
 

Join Date: Jun 2005
Location: Alexandria, Scotland
Posts: 46
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
trouble executing and running on BSD from DG

Hi,

I recently installed FreeBSD 6.0, and am now trying to run my newly created sh scripts, that I ftp'd over from my works Data General - Unix server, I thought they would at least sumwhat/part run, but I can'y even get my basic menu to run and don't know why, can anyone help me by throwing some light on this issue,

I can't even get a script to execute, after changing the scripts to (rwx) on all
of them

menu script below

#!/bin/sh

echo "\n\t\t\t" ;
date '+DATE: %d/%m/%y%nTIME: %H:%M:%S'
sleep 3
clear
echo "\t1. RUN BOARDERS SCRIPT(DAILY)"
echo "\t2. RUN WEEKLY SCRIPT (FRIDAYS @ 2:10 pm)"
echo "\t3. RUN WEEKLY PAIN SCRIPT (WEDNESDAYS)"
echo "\t4. RUN SYSTEMWATCH ROUTINE (Monthly)......."
echo "\t5. RUN I S D SCRIPT......."
echo "\t6. ......."
echo "\t7. ( S U B - M E N U )-Manipulate files"
echo "\t8. RUN Part 1 - Inpatients......."
echo "\t9. RUN Part 2 - Day Bed Units...."
echo "\t10. .........."
echo "\t11. ......."
echo "\t12. RUN 31Days Script......."
echo "\t13. ......."
echo "\t14. ......."
echo "\t15. ......."
echo "\t16. ......."
echo "\t17. ......."
echo "\t18. .transfer back the waiting REPORT......"
echo "\n\t EXIT FROM THIS PROGRAM.. Q or q"
echo "\n\t OR Select a number from the Menu ! \c"
read retry
if [ $retry = 1 ]
then
clear
echo "\n\n\n\t\t\t NOW RUNNING SCRIPT "
echo "\n\n"
/u1/excel/ftp_boarders
cd /u1/excel/Kenny/boarders
/u1/excel/Kenny/boarders/boarders
ls -l /u1/excel/Kenny/boarders/Output
echo "\n\n\t"
#cat /u1/excel/Kenny/boarders/Output |pg
/u1/excel/ftp_boardback
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 2 ]
then
cd /u1/excel
clear
/u1/excel/ftp_waiting
echo "\n\n\t. .RUNNING WEEKLY INPATIENT SCRIPT......"
/u1/excel/Iptestger
cd /u1/excel
/u1/excel/ftp_waitback
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 3 ]
then
/u1/excel/ftp_chest
cd /u1/excel/Kenny
/u1/excel/Kenny/ChestPain
/u1/excel/ftp_chestback
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 4 ]
then
cd /u1/excel/SysWatch
/u1/excel/SysWatch/ftp_systemwatch /u1/excel/SysWatch/Syswatch
/u1/excel/SysWatch/ftp_syswatch_back
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 5 ]

then
clear
echo "\n\n\t. .RUNNING I S D SCRIPT ......"
sleep 4;
cd /u1/excel/isabel
/u1/excel/isabel/ftp_ISD
/u1/excel/isabel/ISDscript
/u1/excel/isabel/ftp_ISDback
echo "\n\n\t. .FINISHED RUNNING I S D SCRIPT ......"
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 6 ]
then
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 7 ]
then
clear
echo "\n\n\n\t\t\t SUB MENU "
echo "\n\n"
/u1/excel/SplitF/SubMenu
exit 0
fi
if [ $retry = 8 ]
then
clear
echo "\n\n\t. .RUNNING PART 1 - Inpatients ......"
sleep 4;
cd /u1/excel/BedStats/ipbsdir
/u1/excel/BedStats/ipbsdir/ftp_bedstats
/u1/excel/BedStats/ipbsdir/bedstats
/u1/excel/BedStats/ipbsdir/ftp_bedstatsback
echo "\n\n\t. .FINISHED RUNNING Part 1 - Inpatients ......"
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 9 ]
then
clear
echo "\n\n\t. .RUNNING PART 2 - Day Bed Units ......"
sleep 4;
cd /u1/excel/BedStats/dbudir
/u1/excel/BedStats/dbudir/ftp_dbu
/u1/excel/BedStats/dbudir/dbu
/u1/excel/BedStats/dbudir/ftp_dbuback
echo "\n\n\t. .FINISHED RUNNING Part 1 - Inpatients ......"
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 10 ]
then
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 11 ]
then
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 12 ]
then
clear
/u1/excel/DayScript/Run_Script
sleep 5
/u1/excel/ELLAMENU
exit 0

fi
if [ $retry = 13 ]
then
/u1/excel/ELLAMENU
exit 0
fi

if [ $retry = 14 ]
then
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 15 ]
then
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 16 ]
then
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 17 ]
then
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = 18 ]
then
/u1/excel/ftp_waitback
/u1/excel/ELLAMENU
exit 0
fi
if [ $retry = q -o $retry = Q ]
then
clear
echo "\n\n\n\n\t"
echo " " ; echo " "; echo " Program Terminated "
echo " "; echo " "
exit 1
fi
done

Last edited by Gerry405; 12-02-2005 at 11:03 AM.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-06-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 627
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
first off --- does /bin/sh exist in your "new" box? and if it does, are the paths mentioned in your script also the same paths?
Reply With Quote
  #3 (permalink)  
Old 12-08-2005
Registered User
 

Join Date: Jun 2005
Location: Alexandria, Scotland
Posts: 46
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
bsd-sh

thanks, I'll check and get back to you
Reply With Quote
  #4 (permalink)  
Old 12-09-2005
Registered User
 

Join Date: Jun 2005
Location: Alexandria, Scotland
Posts: 46
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
paths and permissions

I checked for bin/sh and it's there and the paths are also there, so it's really strange...I also checked permissions on the folders and contents and whether or not executable...they all appear to be fine...
Reply With Quote
  #5 (permalink)  
Old 12-09-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 627
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
when you FTP the files over --- did you reset their permissions like they were in the DataGen box?

f yes, try recopying the files again a little bit differently ... tar all the necessary files/directories in the old box, compress the tar file and then FTP it over to your FreeBSD box ... uncompress, untar and try again ... if still not working, make sure the account that owns the files/directories exist in the BSD box --- fix as required ...

Last edited by Just Ice; 12-10-2005 at 04:58 PM. Reason: misspelled FTP
Reply With Quote
  #6 (permalink)  
Old 12-09-2005
Registered User
 

Join Date: Jun 2005
Location: Alexandria, Scotland
Posts: 46
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Thanks, I would try that but the only option is to ftp these files, as the Data General Box has a DLT but my home server running freebsd does not have this type of drive
Reply With Quote
  #7 (permalink)  
Old 12-10-2005
Just Ice's Avatar
Lights on, brain off.
 

Join Date: Mar 2005
Location: in front of my computer
Posts: 627
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
the only thing i suggested you add to the out transfer process was to tar and compress the files/directories first prior to using FTP to transfer them over ...

and check file/dir ownership and permissions ...
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
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash for loop boot: cannot open kernel/sparcv9/unix command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix daemon process find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime perl array length ping port remove first character from string in k shell replace space by comma , perl script scp recursive segmentation fault(coredump) sftp script snoop unix stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix interview questions unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 01:28 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