Unix Newbie


 
Thread Tools Search this Thread
Special Forums UNIX Desktop Questions & Answers Unix Newbie
# 8  
Old 03-19-2004
Fun fun fun. But very informative Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question
funparamput(3)							SAORD Documentation						    funparamput(3)

NAME
FunParamPut - put a Funtools param value SYNOPSIS
#include <funtools.h> int FunParamPutb(Fun fun, char *name, int n, int value, char *comm, int append) int FunParamPuti(Fun fun, char *name, int n, int value, char *comm, int append) int FunParamPutd(Fun fun, char *name, int n, double value, int prec, char *comm, int append) int FunParamPuts(Fun fun, char *name, int n, char *value, char *comm, int append) DESCRIPTION
The four routines FunParamPutb(), FunParamPuti(), FunParamPutd(), and FunParamPuts(), will set the value of a FITS header parameter as a boolean, int, double, and string, respectively. 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 that use 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 example: int val; FunParamPuti(fun, "NAXIS1", 0, 10, NULL, 1); # current header val=1; FunInfoPut(fun, FUN_PRIMARYHEADER, &val, 0); # switch to ... FunParamPuti(fun, "NAXIS1", 0, 10, NULL, 1); # primary header (You also can use the deprecated FUN_PRIMARY macro, to access parameters from the primary header.) The second argument is the name of the parameter. ( In accordance with FITS standards, the special names COMMENT and HISTORY, as well as blank names, are output without the "= " value indicator in columns 9 and 10. The third n argument, if non-zero, is an integer that will be added as a suffix to the parameter name. This makes it easy to use a simple loop to process parameters having the same root name. For example, to set the values of TLMIN and TLMAX for each column in a binary table, you can use: for(i=0; i<got; i++){ FunParamPutd(fun, "TLMIN", i+1, tlmin[i], 7, "min column val", 1); FunParamPutd(fun, "TLMAX", i+1, tlmax[i], 7, "max column val", 1); } The fourth defval argument is the value to set. Note that the data type of this argument is different for each specific FunParamPut() call. The comm argument is the comment string to add to this header parameter. Its value can be NULL. The final append argument determines whether the parameter is added to the header if it does not exist. If set to a non-zero value, the header parameter will be appended to the header if it does not exist. If set to 0, the value will only be used to change an existing parameter. Note that the double precision routine FunParamPutd() supports an extra prec argument after the value argument, in order to specify the precision when converting the double value to ASCII. In general a 20.[prec] format is used (since 20 characters are alloted to a floating point number in FITS) as follows: if the double value being put to the header is less than 0.1 or greater than or equal to 10**(20-2-[prec]), then %20.[prec]e format is used (i.e., scientific notation); otherwise %20.[prec]f format is used (i.e., numeric nota- tion). As a rule, parameters should be set before writing the table or image. It is, however, possible to update the value of an existing parame- ter after writing an image or table (but not to add a new one). Such updating only works if the parameter already exists and if the output file is seekable, i.e. if it is a disk file or is stdout being redirected to a disk file. It is possible to add a new parameter to a header after the data has been written, but only if space has previously been reserved. To reserve space, add a blank parameter whose value is the name of the parameter you eventually will update. Then, when writing the new param- eter, specify a value of 2 for the append flag. The parameter writing routine will first look to update an existing parameter, as usual. If an existing parameter is not found, an appropriately-valued blank parameter will be searched for and replaced. For example: /* add blank card to be used as a place holder for IPAR1 update */ FunParamPuts(fun, NULL, 0, "IPAR1", "INTEGER Param", 0); ... /* write header and data */ FunTableRowPut(fun, events, got, 0, NULL); ... /* update param in file after writing data -- note append = 2 here */ FunParamPuti(fun, "IPAR", 1, 400, "INTEGER Param", 2); The parameter routines return a 1 if the routine was successful and a 0 on failure. In general, the major reason for failure is that you did not set the append argument to a non-zero value and the parameter did not already exist in the file. SEE ALSO
See funtools(7) for a list of Funtools help pages version 1.4.2 January 2, 2008 funparamput(3)