7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can I script to check telephone number entered by user in a uniz script:
print -n "Enter telephone number to check ? " ; read telno
How do I script to :
1) Check if entered without dashes or with dashes
2) If without dashes how can I check:
if telno is only 10... (2 Replies)
Discussion started by: mrn6430
2 Replies
2. Shell Programming and Scripting
Hello, I'm new to this forum, and I apologize in advance if I did something wrong here.
I am pretty stumped here as I am still getting the error message, "./comc1.sh: test: argument expected." after executing the script itself.
Here's the script file I modified:
I tried executing line 4... (1 Reply)
Discussion started by: ConcealedKnight
1 Replies
3. Shell Programming and Scripting
Hello, excuse my English... I'm trying to do a nautilus-script to transform a normal A4 pdf to another pdf with book format, ready to be printed (double sided). I mean, the script put pages in order and also put 2 pages per horizontal A4 page (p.e.: a pdf with 8 pages would look like: 8-1, 2-7,... (2 Replies)
Discussion started by: dokan
2 Replies
4. Shell Programming and Scripting
hey peeps
has anyone done the "Enhance the spell_check script (Sobell page 646) to accept an optional third argument" script. I am fully having trouble getting it to work. if you have done the script and dont mind sharing with others, please help me out.
thanks
mila :confused: (0 Replies)
Discussion started by: 30177005
0 Replies
5. UNIX for Dummies Questions & Answers
Hello There,
I configure my Modem as follow.
Step1.
# admintool &
Then from Browse --> Serial Port
i select tta port and Edit --> Modify
From that i select Template : Modem:Dial Out
Baud Rate: 9600
Ok
Step 2
# tip /dev/cua/a
connected (1 Reply)
Discussion started by: abidmalik
1 Replies
6. IP Networking
hai to all,
that i came to know all telephone exchanges
use unix.i want to know wheather we can connect telephones
uaeing unix,if it possible means how&and also i need about
more information about "telephones in unix"
... (1 Reply)
Discussion started by: radheesh
1 Replies
7. UNIX for Dummies Questions & Answers
sir,
i came to know that telephone exchanges
use unix for the working of telephones,that is
when we take our hand set in telephone we
can note a dial sound,for this telephone exchanges
use unix.
we are going to do project using unix,i want to know
wheater we can able to connect... (1 Reply)
Discussion started by: radheesh
1 Replies
mktemp(3C) Standard C Library Functions mktemp(3C)
NAME
mktemp - make a unique file name from a template
SYNOPSIS
#include <stdlib.h>
char *mktemp(char *template);
DESCRIPTION
The mktemp() function replaces the contents of the string pointed to by template with a unique file name, and returns template. The string
in template should look like a file name with six trailing 'X's; mktemp() will replace the 'X's with a character string that can be used to
create a unique file name. Only 26 unique file names per thread can be created for each unique template.
RETURN VALUES
The mktemp() function returns the pointer template. If a unique name cannot be created, template points to a null string.
ERRORS
No errors are defined.
EXAMPLES
Example 1 Generate a filename.
The following example replaces the contents of the "template" string with a 10-character filename beginning with the characters "file" and
returns a pointer to the "template" string that contains the new filename.
#include <stdlib.h>
...
char *template = "/tmp/fileXXXXXX";
char *ptr;
ptr = mktemp(template);
USAGE
Between the time a pathname is created and the file opened, it is possible for some other process to create a file with the same name. The
mkstemp(3C) function avoids this problem and is preferred over this function.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Safe |
+-----------------------------+-----------------------------+
SEE ALSO
mkstemp(3C), tmpfile(3C), tmpnam(3C), attributes(5), standards(5)
SunOS 5.11 15 Sep 2004 mktemp(3C)