10 More Discussions You Might Find Interesting
1. Red Hat
Hi,
How/what is the procedure to increase file system in linux server ?
Regards,
Maddy (6 Replies)
Discussion started by: Maddy123
6 Replies
2. Solaris
I have Solaris-10 server running ZFS file-system. ctdp04_vs03-pttmsp01 is one of the non global zone. I wanted to increase a /ttms/prod file-system of zone, which is actually /zone/ctdp04_vs03-pttmsp01/ttms/prod on global server.
I have added a new disk of 9 GB, which is emcpower56a and now I can... (16 Replies)
Discussion started by: solaris_1977
16 Replies
3. Solaris
Hi All,
I am using this commands to dynamically increase ZFS swap space on Solaris
my question is:
1- after i make these commands it will permanent or it will remove after restart
2- how to make it permanent
# swap -l
swapfile dev swaplo bloques libre
/dev/zvol/dsk/rpool/swap... (4 Replies)
Discussion started by: osmanux
4 Replies
4. Red Hat
Hello Admins,
I am running a redhat linux 5 on vmware workstation.
I need to increase or add some more space to my root (/) partition. I don't have any LVM configured..
Please suggest.
# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 3.8G 3.1G ... (4 Replies)
Discussion started by: snchaudhari2
4 Replies
5. Solaris
hi,
let me know how to increase file size in solaris 10 OS (4 Replies)
Discussion started by: meet2muneer
4 Replies
6. AIX
Hi all,
we are usig aix 4.3 and i need to increase the size of "/u01" file sytem which is mounted on logical volume "lv00", but "/u01" file system size is 9 GB and logical volume "lvoo" size 9 GB.how do i increase the size of /u01.do i increase the size of logical volume "lv00" and then... (2 Replies)
Discussion started by: younusdba
2 Replies
7. Shell Programming and Scripting
Hi
Need a Script. Problem is I want to increase the integer in a xml file
example
the xml file is
<name>
<school> Public School
<label>01
</label>
</school>
</name
so when every time when it gets <label> it will increase the value 01 to 02 and store the total increased valued... (7 Replies)
Discussion started by: pranabrana
7 Replies
8. Shell Programming and Scripting
Hello,
A file named c15a is registered on my disc all 10 minutes.
I must rename that file with the actually Date and with an automatic increase number on 5 digits, so as : c15a.20070528.00001 and the next file will be : c15a.20070528.00002.
The next day so tomorrow the five digits must be... (6 Replies)
Discussion started by: steiner
6 Replies
9. UNIX for Dummies Questions & Answers
How can I check how much space is left in the solaris file system? and how can I increase those space in the file system?. I am trying to install Oracle Database on Solaris 8.But, it keep giving me error message says that"There is not enough space on the volume you have specified".
Thanks
... (1 Reply)
Discussion started by: jung1975
1 Replies
10. UNIX for Dummies Questions & Answers
Hi All
This may not be entirely Unix related but I'll just have to try my luck and see if you know how to do this:
I need to spool the results of my SQL query into a file but as there are too many fields in the query the resultant spool file put the last few fields on the next line.
May I... (2 Replies)
Discussion started by: handynas
2 Replies
funparamget(3) SAORD Documentation funparamget(3)
NAME
FunParamGet - get a Funtools param value
SYNOPSIS
#include <funtools.h>
int FunParamGetb(Fun fun, char *name, int n, int defval, int *got)
int FunParamGeti(Fun fun, char *name, int n, int defval, int *got)
double FunParamGetd(Fun fun, char *name, int n, double defval, int *got)
char *FunParamGets(Fun fun, char *name, int n, char *defval, int *got)
DESCRIPTION
The four routines FunParamGetb(), FunParamGeti(), FunParamGetd(), and FunParamGets(), return the value of a FITS header parameter as a
boolean, int, double, and string, respectively. The string returned by FunParamGets() is a malloc'ed copy of the header value and should be
freed when no longer needed.
The first argument is the Fun handle associated with the FITS header being accessed. Normally, the header is associated with the FITS
extension that you opened with FunOpen(). However, you can use FunInfoPut() to specify access of the primary header. In particular, if you
set the FUN_PRIMARYHEADER parameter to 1, then the primary header is used for all parameter access until the value is reset to 0. For exam-
ple:
int val;
FunParamGeti(fun, "NAXIS", 1, 0, &got); # current header
val=1;
FunInfoPut(fun, FUN_PRIMARYHEADER, &val, 0); # switch to ...
FunParamGeti(fun, "NAXIS", 1, 0, &got); # ... primary header
FunParamGeti(fun, "NAXIS", 2, 0, &got); # ... primary header
val=0;
FunInfoPut(fun, FUN_PRIMARYHEADER, &val, 0); # switch back to ...
FunParamGeti(fun, "NAXIS", 2, 0, &got); # current header
Alternatively, you can use the FUN_PRIMARY macro to access parameters from the primary header on a per-parameter basis:
FunParamGeti(fun, "NAXIS1", 0, 0, &got); # current header
FunParamGeti(FUN_PRIMARY(fun), "NAXIS1", 0, 0, &got); # primary header
NB - FUN_PRIMARY is deprecated. It makes use of a global parameter and therefore will not not appropriate for threaded applications, when
we make funtools thread-safe. We recommend use of FunInfoPut() to switch between the extension header and the primary header.
For output data, access to the primary header is only possible until the header is written out, which usually takes place when the first
data are written.
The second argument is the name of the parameter to access. The third n argument, if non-zero, is an integer that will be added as a suf-
fix to the parameter name. This makes it easy to use a simple loop to process parameters having the same root name. For example, to
gather up all values of TLMIN and TLMAX for each column in a binary table, you can use:
for(i=0, got=1; got; i++){
fun->cols[i]->tlmin = (int)FunParamGeti(fun, "TLMIN", i+1, 0.0, &got);
fun->cols[i]->tlmax = (int)FunParamGeti(fun, "TLMAX", i+1, 0.0, &got);
}
The fourth defval argument is the default value to return if the parameter does not exist. Note that the data type of this parameter is
different for each specific FunParamGet() call. The final got argument will be 0 if no param was found. Otherwise the data type of the
parameter is returned as follows: FUN_PAR_UNKNOWN ('u'), FUN_PAR_COMMENT ('c'), FUN_PAR_LOGICAL ('l'), FUN_PAR_INTEGER ('i'),
FUN_PAR_STRING ('s'), FUN_PAR_REAL ('r'), FUN_PAR_COMPLEX ('x').
These routines return the value of the header parameter, or the specified default value if the header parameter does not exist. The
returned value is a malloc'ed string and should be freed when no longer needed.
By default, FunParamGets() returns the string value of the named parameter. However, you can use FunInfoPut() to retrieve the raw
80-character FITS card instead. In particular, if you set the FUN_RAWPARAM parameter to 1, then card images will be returned by Fun-
ParamGets() until the value is reset to 0.
Alternatively, if the FUN_RAW macro is applied to the name, then the 80-character raw FITS card is returned instead. NB - FUN_RAW is
deprecated. It makes use of a global parameter and therefore will not not appropriate for threaded applications, when we make funtools
thread-safe. We recommend use of FunInfoPut() to switch between the extension header and the primary header.
Note that in addition to the behaviors described above, the routine FunParamGets() will return the 80 raw characters of the nth FITS card
(including the comment) if name is specified as NULL and n is positive. For example, to loop through all FITS header cards in a given
extension and print out the raw card, use:
for(i=1; ;i++){
if( (s = FunParamGets(fun, NULL, i, NULL, &got)) ){
fprintf(stdout, "%.80s
", s);
free(s);
}
else{
break;
}
}
SEE ALSO
See funtools(7) for a list of Funtools help pages
version 1.4.2 January 2, 2008 funparamget(3)