The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 11:53 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-06-2008
netsecwork netsecwork is offline
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
  #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?
Sponsored Links
Closed Thread

Bookmarks

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




All times are GMT -4. The time now is 06:20 PM.


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