Sponsored Content
Top Forums UNIX for Dummies Questions & Answers How to Load a File into Memory Post 302322998 by Franklin52 on Friday 5th of June 2009 04:59:12 AM
Old 06-05-2009
If you have the functions in a separate file you can "include" the file in your scripts with:

Code:
. /your/path/functions.sh

Be aware of the space between the dot and the /dir/filename.

Regards
 

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script to Load data into the database using a .csv file and .ctl file

Since i'm new to scripting i'm findind it difficult to code a script. The script has to be an executable with 2 paramters passed to it.The Parameters are 1. The Control file name(.ctl file) 2. The Data file name(.csv file) Does anybody have an idea about it? :confused: (3 Replies)
Discussion started by: Csmani
3 Replies

2. Shell Programming and Scripting

Need help in wrting Load Script for a Load-Resume type of load.

hi all need your help. I am wrting a script that will load data into the table. then on another load will append the data into the existing table. Regards Ankit (1 Reply)
Discussion started by: ankitgupta
1 Replies

3. HP-UX

HP-UX File System device load

Hi Guys, I am new to HP-UX system, can someone please let me know which file or what process is require to load all the devices when the system boot up. Currently I am having a few issue when starting the system it does not load all the device. Cheers, (0 Replies)
Discussion started by: fkaba81
0 Replies

4. Programming

how to load a file in memory for doing DMA transfer to Bus master DMA

i need to send a file to the ethernet card , thro DMA mode i have an bus master ethernet card soo how can i initiate the dma for the ethernet card??? and how do i load the file into memory so tht i can directly give the address of the file to nic for DMA transfer pls help :( :( (0 Replies)
Discussion started by: arunkumarspk
0 Replies

5. HP-UX

How can I get memory usage or anything that show memory used from sar file?

Refer from title: How can i get memory used or anything that can show memory from sar file example on solaris:- we can use sar with option to show memory used at time that sar crontab run. on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies

6. UNIX for Advanced & Expert Users

Memory load test

is there a program out there that will put a memory load on my HP_ux 11.11 box. I need to stress mem/swap to setup memory thresholds for my monitoring software. I am using Nimbus to monitor memory and swap. glance is telling me that memory is never past 70 percent however nimbus will page out ... (1 Reply)
Discussion started by: myork
1 Replies

7. UNIX for Advanced & Expert Users

Load file name as a column

I have 300,000 folder and inside each folder i have N number of .csv files. Now the question is, i need to add the respective file name as one of the column in each file. How to do it? Thanka in advance Ram (1 Reply)
Discussion started by: sura
1 Replies

8. UNIX for Dummies Questions & Answers

VPS has load 200, httpd load no activity, netstat nothing

Hello, on my hostserver i see one VPS of mine got load of 200.00 and netstat nothing (not a single blank line on netstat command) after some time, netstat started showing connections, but i see no excessive IP connections. tail -f /var/log/httpd/access_log shows no activity /var/log/messages ;... (1 Reply)
Discussion started by: postcd
1 Replies

9. Shell Programming and Scripting

Script fro file check and load the trail file

Hi, Im going to use shell script for load the data into DB. First i need to read the trail file(csv file has two columns with comma separated ) like file name trail1024(last 4 digitsMMDD). In this trail file 27 entries will have like below,I need to read first csv file name and get the 4... (1 Reply)
Discussion started by: krajasekhar.v
1 Replies
RRDCOLLECT.CONF(5)						    RRDcollect							RRDCOLLECT.CONF(5)

NAME
rrdcollect.conf -- RRDcollect configuration file. SYNOPSIS
/etc/rrdcollect.conf DESCRIPTION
The rrdcollect.conf file contains information where to look for data and to which database file put it. Variables # Configuration values: step = 60 directory = /var/local/rrd loglevel = LOG_NOTICE Patterns # System statistics: file:///proc/stat "cpu %d %d %d %d" stat.rrd:user,nice,system,idle "processes %u" stat.rrd:processes "swap %u %u" stat.rrd:swap_in,swap_out # System load: 1, 5 and 15 min. average file:///proc/loadavg "%f %f %f" avg1.rrd:load,avg5.rrd:load,avg15.rrd:load # Memory usage: file:///proc/meminfo "Mem: %*d %d %d %d %d %d" memory.rrd:used,free,shared,buffers,cached "Swap: %*d %d %*d" memory.rrd:swap_used # S.M.A.R.T. HDD temperature: file:///proc/ide/hda/smart_values 7:"%*04x %*04x %02x%*02x" temperature.rrd:hda Regular expressions # Using regular expressions: file:///proc/stat /cpu (d+) (d+) (d+) (d+)/ stat.rrd:user,nice,system,idle Please look into examples/ directory for working examples. FILES
/etc/rrdcollect.conf SEE ALSO
rrdcollect(8), rrdtool(1), pcre(3) AUTHOR
Dawid Kuroczko <qnex@knm.org.pl> Artur R. Czechowski <arturcz@hell.pl> 2 September 2002 RRDcollect 0.2.10 RRDCOLLECT.CONF(5)
All times are GMT -4. The time now is 06:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy