9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
My main aim here is to create a database of verbs in a language to Hindi. The output if it works well will be put up on a University site for researchers to use for Machine Translation. This because one of the main weaknesses of MT is in the area of verbs.
Sorry for the long post but the problem... (4 Replies)
Discussion started by: gimley
4 Replies
2. Red Hat
I have an Oracle Linux 7.1 vsphere host built. It's be preconfigured with our security configurations.
What I would like to do is unconfigure this host. Then set the host to do firstboot --reconfigure.
how do I do that using /etc/sysconfig/firstboot?
I've tried setting
... (10 Replies)
Discussion started by: os2mac
10 Replies
3. Programming
I want to create a Matrix template that uses vector. For the time being I want to create the following operations. I need setting the implementation for the operations.
Maybe I do not have to use a pointer either.
template <class T>
class Matrix {
protected:
typedef vector<T>* ... (2 Replies)
Discussion started by: kristinu
2 Replies
4. Homework & Coursework Questions
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Here is what I am supposed to do, word for word from my assignment page:
1. Create/modify and print a... (2 Replies)
Discussion started by: Jagst3r21
2 Replies
5. Shell Programming and Scripting
Dear All,
I have a template xml file like below.
....Some---Header.......
<SignalPreference>
...
<SignalName>STRING</SignalName>
...
</SignalPreference>
......Some formatting text.......
<SignalPreference>
.........
... (3 Replies)
Discussion started by: ks_reddy
3 Replies
6. Programming
Hello Again,
I am just wanted to know if we can call the Template using "require_once" at PHP?
Any views around happy to discuss.
Thanks in Advance (2 Replies)
Discussion started by: AimyThomas
2 Replies
7. Shell Programming and Scripting
hi experts,
i'm trying to do this:
file1 is a template. might have kinds of 'funny' characters.
sample:
<body>
<form>
<p><input type="text" name="abc"/></p>
<p><my_content></p>
</form>
</body>
file2 is a file that contains lots of text. this might be very big. might have... (2 Replies)
Discussion started by: xjohnu
2 Replies
8. Shell Programming and Scripting
Hi,
Can someone help me with creating a bash shell script.
I need to create a script that gets a positive number n as an argument.
The script must create n directories in the current directory with names like map_1, map_2 etcetera. Each directory must be contained within its predecessor. So... (7 Replies)
Discussion started by: I-1
7 Replies
9. UNIX for Advanced & Expert Users
I am attempting to set-up a Makefile to use for a new system on a Sun Unix machine.
I am new to creating Makefiles. I am trying to start simply by compiling a program. I am getting the following error message but an uncertain what 'Error Code 1' is. Is there a web site with Error Codes... (1 Reply)
Discussion started by: CaptainRo
1 Replies
MKTEMP(3) Linux Programmer's Manual MKTEMP(3)
NAME
mktemp - make a unique temporary file name
SYNOPSIS
#include <stdlib.h>
char *mktemp(char *template);
DESCRIPTION
The mktemp() function generates a unique temporary file name from template. The last six characters of template must be XXXXXX and these
are replaced with a string that makes the filename unique. Since it will be modified, template must not be a string constant, but should be
declared as a character array.
RETURN VALUE
The mktemp() function returns NULL on error (template did not end in XXXXXX) and template otherwise. If the call was successful, the last
six bytes of template will have been modified in such a way that the resulting name is unique (does not exist already). If the call was
unsuccessful, template is made an empty string.
ERRORS
EINVAL The last six characters of template were not XXXXXX.
CONFORMING TO
BSD 4.3. POSIX dictates tmpnam(3).
NOTE
The prototype is in <unistd.h> for libc4, libc5, glibc1; glibc2 follows the Single Unix Specification and has the prototype in <stdlib.h>.
BUGS
Never use mktemp(). Some implementations follow BSD 4.3 and replace XXXXXX by the current process id and a single letter, so that at most
26 different names can be returned. Since on the one hand the names are easy to guess, and on the other hand there is a race between test-
ing whether the name exists and opening the file, every use of mktemp() is a security risk. The race is avoided by mkstemp(3).
SEE ALSO
mkstemp(3), tempnam(3), tmpfile(3), tmpnam(3)
GNU
1993-04-03 MKTEMP(3)