08-19-2008
7 More Discussions You Might Find Interesting
1. Programming
i was searching on the net have found a couple of sample programs and was wondering if some could tell me what they do cheers.
main()
{
printf("Executing ls\n");
execl("/bin/ls","ls","-l", (char *)0);
perror("execl failed to run ls");
exit(1);
}
main()
{
int i;
i =... (5 Replies)
Discussion started by: ruffenator
5 Replies
2. UNIX for Dummies Questions & Answers
Hello all I am new and I had a question that I was hoping you could answer.
I am using mutt on a directory in this directory will be pdf files named 001.pdf , 002.pdf and so on. I need a script that can read the filename and associate that with a user like so :
if 001.pdf exists then email... (16 Replies)
Discussion started by: linuxguy30350
16 Replies
3. UNIX for Dummies Questions & Answers
I try taip this script below...but i have got error.The error message is Input read error..Anybody can see whether my script have problem.Below this is my script:
#!/bin/sh
filename=test.txt
vi $filename <<EndOfCommands
i
This file was created automatically from
a shell script
^ (1 Reply)
Discussion started by: mastercar
1 Replies
4. Shell Programming and Scripting
Im trying to find a script that will pull ip addresses along with the date and time sort it by ip addresses and output it to a file...
As a newbie to scripting im kinda stumped here...and suggestions? (2 Replies)
Discussion started by: jspinal
2 Replies
5. Shell Programming and Scripting
How would i take the output of a file dump it into another file while at the same time sorting it?
this is my script..simple i know!?
echo "Enter the file log you wish to use. : "
read file
awk '{print $1,$2,$4,$5}' $file >> list
Im trying to dump it into that list file and sort it at... (6 Replies)
Discussion started by: jspinal
6 Replies
6. Red Hat
hi ...
i want to monitor the httpd service whether its online or offline.. if httpd service goes offline/stopped then i need to get alert to my mail. how to do construct this script..
myself using RHEL4 ... (1 Reply)
Discussion started by: sriniv666
1 Replies
7. What is on Your Mind?
Hi guys,
What do you think about these certifications? (18 Replies)
Discussion started by: Luca.Francesca
18 Replies
LEARN ABOUT DEBIAN
index_set
index_set(7rheolef) rheolef-6.1 index_set(7rheolef)
NAME
index_set - a set of indexes (rheolef-6.1)
SYNOPSYS
A class for: l = {1,3,...9} i.e. a wrapper for STL set<size_t> with some assignment operators, such as l1 += l2. This class is suitable
for use with the array<T> class, as array<index_set> (see array(2)).
IMPLEMENTATION
class index_set : public std::set<std::size_t> {
public:
// typedefs:
typedef std::set<std::size_t> base;
typedef std::size_t value_type;
typedef std::size_t size_type;
// allocators:
index_set ();
index_set (const index_set& x);
index_set& operator= (const index_set& x);
template <int N>
index_set& operator= (size_type x[N]);
void clear ();
// basic algebra:
void insert (size_type dis_i); // a := a union {dis_i}
index_set& operator+= (size_type dis_i); // idem
index_set& operator+= (const index_set& b); // a := a union b
// a := a union b
void inplace_union (const index_set& b);
void inplace_intersection (const index_set& b);
// c := a union b
friend void set_union (const index_set& a, const index_set& b, index_set& c);
friend void set_intersection (const index_set& a, const index_set& b, index_set& c);
// io:
friend std::istream& operator>> (std::istream& is, index_set& x);
friend std::ostream& operator<< (std::ostream& os, const index_set& x);
// boost mpi:
template <class Archive>
void serialize (Archive& ar, const unsigned int version);
};
SEE ALSO
array(2)
rheolef-6.1 rheolef-6.1 index_set(7rheolef)