11-20-2010
This program opens file named "./testfile2" for writing.
five times it writes: "Output 1 \n" to this file. Note that it doesn't append to it because of this: ">" it wipes all data and then writes to it. if you want to append to it use: ">>".
The last three lines are trivial.
This User Gave Thanks to majid.merkava For This Post:
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
can i do this? i am learning this on my own..and from the book..simple unix i am not sure if the syntax would work
if
statement
then
statement
do or for or while
statement
done
else
statement
fi....
I dont know how else to explain that...I hope I... (2 Replies)
Discussion started by: jonas27
2 Replies
2. Shell Programming and Scripting
hi everyone,
i am learning CGI using Perl, but i am having problem to compile and run the scripts.
the thing is that, when i want to compile my scripts i have to get connected to the internet and have to upload the scripts to a server and then only i can compile and run my scripts.
so, can... (2 Replies)
Discussion started by: shifan
2 Replies
3. Shell Programming and Scripting
Does anyone know where I might be able to download the exercises from the learning perl 3rd edition book. Any URL's would be valuable! Thanks:confused: (1 Reply)
Discussion started by: bilal_aa
1 Replies
4. UNIX for Dummies Questions & Answers
Hi,
It is very urgent.
Pls guide me in learning Perl Module and the Packages.
Eventhough i tried in the google, I didnt get upto my expectations.
Pls guide me how to create , build Module and the package.
Many Thanks. (3 Replies)
Discussion started by: Yamini Thoppen
3 Replies
5. Shell Programming and Scripting
Can anyone suggest a good pearl book?:) (2 Replies)
Discussion started by: nygenka
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
i have started to learn unix (on and off for the past few months) and am wishing to move into that area in the administration field of it.
I have been working in the help desk area (desktop support - windows based) for about 2.5 years and moved into a team leading role for 1 year in which i... (1 Reply)
Discussion started by: donnieDarko
1 Replies
7. Shell Programming and Scripting
Seems like it's written out pretty well for a beginner to learn, any thoughts or recommendations for other books? I'd post the link but I can't do that yet.
The book is called "Beginning Perl" by Simon Cozens (2 Replies)
Discussion started by: budfoxcat
2 Replies
8. Shell Programming and Scripting
Good afternoon,
I am not trying to start a debate. Please don't take it that way. I'm not trying to make this a Perl versus Bash scripts thing.
I have been writing shell scripts for several years. I am not 100%, but I seem to get the job done. I would like to start focusing on spending... (11 Replies)
Discussion started by: brianjb
11 Replies
9. UNIX for Dummies Questions & Answers
Hello All,
I am actually learning PERL and more interested to learn CGI script too. Can any suggest a forum or weblink which is more helpful for a dummy CGI developer.
Thanks (6 Replies)
Discussion started by: posix
6 Replies
LEARN ABOUT HPUX
fputs_unloc
puts(3S) puts(3S)
NAME
puts(), fputs() - put a string on a stream
SYNOPSIS
Obsolescent Interfaces
DESCRIPTION
writes the null-terminated string pointed to by s, followed by a new-line character, to the standard output stream
writes the null-terminated string pointed to by s to the named output stream, but does append a new-line character.
Neither function writes the terminating null character.
Notes
and append a new-line character; and do not.
Obsolescent Interfaces
and put a string on a stream.
RETURN VALUE
Upon successful completion, these routines return a non-negative number. Otherwise they return EOF, set the error indicator for the
stream, and set to indicate the error.
ERRORS
These routines fail if, either the stream is unbuffered or stream's buffer needed to be flushed causing an underlying call to be invoked,
and:
The flag is set for the file descriptor underlying stream and the process would be delayed in the write operation.
The file descriptor underlying
stream is not a valid file descriptor open for writing.
An attempt was made to write to a file
that exceeds the process's file size limit or the maximum file size (see ulimit(2)).
A signal was caught during the
system call.
[EIO] The process is in a background process group and is attempting to write to its controlling terminal, is set, the
process is neither ignoring nor blocking the signal, and the process group of the process is orphaned.
There was no free space remaining on the device containing the file.
An attempt is made to write to a pipe or
FIFO that is not open for reading by any process. A signal is also sent to the process.
Additional values may be set by the underlying function (see write(2)).
WARNINGS
and are obsolescent interfaces supported only for compatibility with existing DCE applications. New multithreaded applications should use
and
SEE ALSO
ferror(3S), flockfile(3S), fopen(3S), fread(3S), printf(3S), putc(3S), orientation(5), thread_safety(5), glossary(9).
STANDARDS CONFORMANCE
puts(3S)