Sponsored Content
Full Discussion: Unix Newbie
Special Forums UNIX Desktop Questions & Answers Unix Newbie Post 47581 by norsk hedensk on Thursday 12th of February 2004 09:45:20 PM
Old 02-12-2004
sorry, offtopic:

hahaahha oombera, nicely put.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

unix newbie

What shellscript would I use If I wanted to list all files in the current directory which are identical to a certain filename. I am told to use binary comparison but have been unable to find out what this means. I have tried man pages and can find a file of a certian filename but cant seem to... (1 Reply)
Discussion started by: gavinlow1980
1 Replies

2. UNIX for Dummies Questions & Answers

am a unix newbie

hello, first time I have posted in here....hope somebody can help. I have a sparc4 workstation loaded with solaris 8....it is asking me for a prompt and I have tried a whole bunch with no success. <actually I have this machine to mess around with linux so I would like to get rid of unix and... (12 Replies)
Discussion started by: mysticalpotato
12 Replies

3. UNIX for Dummies Questions & Answers

hello unix newbie

hi im new to unix i use windows on my home pc the reason i registered is because im finishing up a UNIX class this year. all i have left is the exam but i had a lot of personal problems and didnt do a lot of work; the teacher is letting me make it up but its hard for me to learn a whole unix... (1 Reply)
Discussion started by: Combat Form
1 Replies

4. Shell Programming and Scripting

Can we call JSP file from Unix.if so how.Please help me.Im newbie to Unix

Hi Can we call a jsp page from Unix.if so please let me know how we can.. thanks for the help in advance... thanks kumar (0 Replies)
Discussion started by: mailsukumar
0 Replies

5. UNIX for Dummies Questions & Answers

I'm a newbie to unix

i have just installed UNIX 7.01 to replace a windows server2003 used for my family to share and remotely save photos i need to set it up so very novice users can view, import and export photos most of the remote users will have windows machines,i use Linux, Mac and windows. most of what i want... (2 Replies)
Discussion started by: chance63
2 Replies

6. UNIX for Dummies Questions & Answers

UNIX newbie NEWBIE question!

Hello everyone, Just started UNIX today! In our school we use solaris. I just want to know how do I setup Solaris 10 not the GUI one, the one where you have to type the commands like ECHO, ls, pwd, etc... I have windows xp and I also have vmware. I hope I am not missing anything! :p (4 Replies)
Discussion started by: Hanamachi
4 Replies

7. OS X (Apple)

Unix Newbie...

I've a MacBook and I'm not that good to this Unix kind of a operating system, could you guys please suggest me some Unix Beginner type book to learn all the shell scripting and the whole UNIX environment (something for intermediate level)...there are thousands of books available and i don't know... (2 Replies)
Discussion started by: VasiqMz
2 Replies

8. UNIX for Dummies Questions & Answers

newbie in unix

hiii i have few questions..i hav just started using unix....i got two doubts or problems as per now, if anyone can clarify it or solve it, his/her help is highly appreciated.. 1) how to Rename all files which contain the sub-string 'foo', replacing it with 'bar' within a given folder. 2)How to... (1 Reply)
Discussion started by: vicky1989
1 Replies

9. UNIX Desktop Questions & Answers

unix newbie

Hi everyone! Thanks for taking the time. I've installed redhat and ubunto on vmware virtually. I want to try unix and I tried to look in the internet but wasn't able to accomplish my desire task. Any links for install, download links and information will be honestly appreciated. I will be... (6 Replies)
Discussion started by: michaelttkk
6 Replies

10. UNIX for Dummies Questions & Answers

UNIX for newbie

i very newbie unix i already download FreeBSD-10.0-RELEASE-i386-disc1 but i don't know how to use it can anyone tell me, i use win 7 and i like to learn, i read a book teach your self unix in 24 hour but not told me how i do the first time do i need to made dual boot ? in windows system what... (4 Replies)
Discussion started by: hle
4 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)
All times are GMT -4. The time now is 06:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy