11-18-2012
You need to initialize the variable prior to the while loop test. The line above contains "finsh" instead of "finish"
This User Gave Thanks to Scrutinizer For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Every night I recieve this message:
Verify Report - Broken/missing symbolic links
File With Discrepancies : 213
Total Discrepancies : 213
Can anyone explain what this is and how I can resolve it?
Thanks,
DJ At Work (4 Replies)
Discussion started by: djatwork
4 Replies
2. UNIX for Advanced & Expert Users
While attempting to use ftp to retrieve a file from a remote server (running SCO Unix 5.0.2), it eventually returns a timeout error with the following message - netin: connection reset by peer.
I can't find any reference to this error. Has anyone encountered it before, or know what causes it? (3 Replies)
Discussion started by: Howeird
3 Replies
3. Shell Programming and Scripting
hi all,
i've got a script that takes in what a user enters (multiple entries) and then joins them all together and appends this to a file. what i want to happen now is the terminal should display "record saved" if the save to the file is successful, if it isn't just display the standard unix... (2 Replies)
Discussion started by: wazzag
2 Replies
4. Programming
What does the following mean:
state_field state_abvr = {
"AL","ALABAMA",
"AK","ALASKA",
.
.
.
};
extern state_field state_abvr;
issues we
I am facing following compilation issue
bosdf9d1:root make
CC -I/bto/bcs/shared/include -I/bto/sys/BCS/usr/include ... (1 Reply)
Discussion started by: jaganreddy
1 Replies
5. Shell Programming and Scripting
I used set -n FS.sh to check for syntax errors. No problems. I run the script with set -x and set -v with the following error:
find: bad option ;
find: path-list predicate-list
Reviewing the verbose output everything is read correctly. The files transfer and the script completes. I can't seem... (4 Replies)
Discussion started by: BigSky
4 Replies
6. Filesystems, Disks and Memory
I have an HP NetServer LH3 which is exhibiting an error during the boot process. I am getting the following messages, none of which I've seen before
1. WARNING: SCSI adapter: Cannot install intr vecno=12 type=4 IPL=5 Vector 12 is private
2. WARNING: "TEST_UNIT_READY" Command timed 11 seconds... (0 Replies)
Discussion started by: slant-40
0 Replies
7. Programming
Hello, the following is generating a error at the line "tmprintf(&tmBundle, _TMC("{0}"),Prompt);"... a bit lost as I am diving into this debug...
Thank you in advance...
int H_YesNo(TMCHAR *Prompt, int DefVal)
{
TMCHAR YesNo = '\0';
tmprintf(&tmBundle, _TMC("{0}"),Prompt);
while... (3 Replies)
Discussion started by: reelflytime
3 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
Below is the control card or the file which i am using in shell script to mget files from remote machine via FTP.
bash-3.00$ cat ftp_ALD_DAC.log
open 10.xx.yy.zzz
user D00000187 nb8tr4xx2u
ascii
cd prod/out
lcd /Internal_Impact_TT_Input
mget ALD*.TXT
bye
Below is the... (0 Replies)
Discussion started by: Ariean
0 Replies
9. Shell Programming and Scripting
Hi gurus,
I have a question, need some of your inputs...
I have a command like this :
export LINE_COUNT=`wc -l test.dat | awk '{print $1}'`
echo $LINE_COUNT --- > gives me 2 which is fine as the file has 2 lines.
This works fine if the file test.dat is present but in case... (3 Replies)
Discussion started by: calredd
3 Replies
10. Shell Programming and Scripting
first of all.. sorry about all the question bombing.. im bored atm so im currently playing around with sh scripting hehe
s = `expr ls -s Documents | grep Music | awk '{ print $1 }' `
t = `expr $t + $s`
it give syntax error
s not found
t not found lol...
any idea why? (7 Replies)
Discussion started by: Nick1097
7 Replies
LEARN ABOUT DEBIAN
std::basic_istream_sentry
std::basic_istream< _CharT, _Traits >::sentry(3cxx) std::basic_istream< _CharT, _Traits >::sentry(3cxx)
NAME
std::basic_istream< _CharT, _Traits >::sentry -
SYNOPSIS
Public Types
typedef
__istream_type::__ctype_type __ctype_type"
typedef _Traits::int_type __int_type
typedef basic_istream< _CharT,
_Traits > __istream_type"
typedef basic_streambuf
< _CharT, _Traits > __streambuf_type"
typedef _Traits traits_type
Public Member Functions
sentry (basic_istream< _CharT, _Traits > &__is, bool __noskipws=false)
operator bool () const
Detailed Description
template<typename _CharT, typename _Traits>class std::basic_istream< _CharT, _Traits >::sentry
Performs setup work for input streams.
Objects of this class are created before all of the standard extractors are run. It is responsible for exception-safe prefix and suffix
operations, although only prefix actions are currently required by the standard.
Definition at line 638 of file istream.
Member Typedef Documentation
template<typename _CharT, typename _Traits> typedef _Traits std::basic_istream< _CharT, _Traits >::sentry::traits_type
Easy access to dependant types.
Definition at line 645 of file istream.
Constructor & Destructor Documentation
template<typename _CharT, typename _Traits> std::basic_istream< _CharT, _Traits >::sentry::sentry (basic_istream< _CharT, _Traits > &__is,
bool__noskipws = false) [explicit]
The constructor performs all the work. Parameters:
is The input stream to guard.
noskipws Whether to consume whitespace or not.
If the stream state is good (is.good() is true), then the following actions are performed, otherwise the sentry state is false (not okay)
and failbit is set in the stream state.
The sentry's preparatory actions are:
1. if the stream is tied to an output stream, is.tie()->flush() is called to synchronize the output sequence
2. if noskipws is false, and ios_base::skipws is set in is.flags(), the sentry extracts and discards whitespace characters from the
stream. The currently imbued locale is used to determine whether each character is whitespace.
If the stream state is still good, then the sentry state becomes true (okay).
Definition at line 49 of file istream.tcc.
References std::basic_ios< _CharT, _Traits >::eof(), std::ios_base::eofbit, std::ios_base::failbit, std::ios_base::flags(), std::basic_ios<
_CharT, _Traits >::good(), std::ios_base::goodbit, std::__ctype_abstract_base< _CharT >::is(), std::basic_ios< _CharT, _Traits >::rdbuf(),
std::basic_ios< _CharT, _Traits >::setstate(), std::basic_streambuf< _CharT, _Traits >::sgetc(), std::ios_base::skipws,
std::basic_streambuf< _CharT, _Traits >::snextc(), and std::basic_ios< _CharT, _Traits >::tie().
Member Function Documentation
template<typename _CharT, typename _Traits> std::basic_istream< _CharT, _Traits >::sentry::operator bool () const [inline], [explicit]
Quick status checking. Returns:
The sentry state.
For ease of use, sentries may be converted to booleans. The return value is that of the sentry state (true == okay).
Definition at line 686 of file istream.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Tue Nov 27 2012 std::basic_istream< _CharT, _Traits >::sentry(3cxx)