Go Back   openSUSE Forums > Archives > SF Archives > ARCHIVES - Programming & Scripting
Forums FAQ Members List Search Today's Posts Mark Forums Read


ARCHIVES - Programming & Scripting A place to discuss website design, programming, shell scripts, etc

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 13-Aug-2007, 07:31
Charley
Guest
 
Posts: n/a
Default

I have a shell script,
It is so large,
so I do not want to run it at a time.
instead i 'd like to make it into some small scripts file
and i have already make some mark in the original file where need to be separated
and what to do next?
Thank you.
  #2 (permalink)  
Old 13-Aug-2007, 07:41
ILLegaL
Guest
 
Posts: n/a
Default

If you mean BASH shell script, you could divide your script into several functions/procedures, put them in several files and then use 'source /path/to/the/script.sh' command in the beginning of the main script file to include functions/procedures that will be called there.
 

Bookmarks

Thread Tools
Display Modes

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




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2