The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > 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 01:49 PM
HP-UX memory usage allocation dehuang83 HP-UX 3 06-02-2007 03:40 AM
reduce buffer cache allocation? dehuang83 UNIX for Dummies Questions & Answers 1 05-03-2007 05:26 AM
HP-UX memory usage allocation dehuang83 UNIX for Dummies Questions & Answers 1 05-03-2007 01:40 AM
memory allocation sagar UNIX for Dummies Questions & Answers 1 01-05-2002 10:53 PM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-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
Sponsored Links
  #2 (permalink)  
Old 10-06-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
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

Bookmarks

Tags
None

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:




All times are GMT -4. The time now is 08:25 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
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

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