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
Dynamic memory allocation naan High Level Programming 11 09-03-2008 10:49 AM
HP-UX memory usage allocation dehuang83 HP-UX 3 06-02-2007 12:40 AM
reduce buffer cache allocation? dehuang83 UNIX for Dummies Questions & Answers 1 05-03-2007 02:26 AM
HP-UX memory usage allocation dehuang83 UNIX for Dummies Questions & Answers 1 05-02-2007 10:40 PM
memory allocation sagar UNIX for Dummies Questions & Answers 1 01-05-2002 08:53 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 10-05-2008
Registered User
 

Join Date: Oct 2008
Posts: 1
Buffer size/memory allocation for shell scripts

Hello,

I have a small problem some large shell scripts.
My scripts do lot of text manipulation with large files. But at some point they stuck. The variables in the script lose their value, it becomes null.
I guess this is because of lack of memory. What could be the other reason of variables losing its value?


How can I allocate more ram to shell scripts in linux, or increase the buffer size?

Thanks
Reply With Quote
Forum Sponsor
  #2  
Old 10-06-2008
era era is offline
Herder of Useless Cats
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,650
I'm sorry, but your diagnosis doesn't sound plausible to me. Do you get any error message? The shell will simply allocate enough memory to hold the variables, and emit an error (and possibly even crash) if it cannot.

Can you prune down your script to a minimal example which exhibits this behavior?
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:59 AM.


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

Content Relevant URLs by vBSEO 3.2.0