10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
How can we connect to remote computers with a bash script.? (1 Reply)
Discussion started by: diw10
1 Replies
2. UNIX for Dummies Questions & Answers
hi Im unable to find how this script in conencting to DB and which DB and job is scheduled in TWS to run this script.
Any sugggestion where to look for or how to get information.
please find below part of script for DB conenction.
##### SET VARIABLES ##################
rundate=`date... (1 Reply)
Discussion started by: saif2825
1 Replies
3. UNIX for Advanced & Expert Users
Hi everybody,
I am running a program on a supercomputer via my personal computer through a ssh connection. My program take more than a day to run, so when I left work with my PC I stop the connection with the supercomputer and the program stop.
I am wondering if someone know how I can manage... (2 Replies)
Discussion started by: TomTomGre
2 Replies
4. AIX
Hi,
I have a server AIX 5.3
Few people have the root password and somebody used the root login to erase a file (command rm in the .sh_history of root). :mad:
I would like to know if a file exist with what ip address has been connected.
I want to find the guilty!!! :D
Thanks guys (2 Replies)
Discussion started by: Castelior
2 Replies
5. Shell Programming and Scripting
Hi,
I'm trying to write a script which will run a select on db.
#!/usr/bin/ksh
SQL_INPUT_FILE=file_name.sql
SQL_OUTPUT_FILE=output.txt
MANPATH=/usr/share/man:/opt/SUNWspro/man:/usr/local/man... (2 Replies)
Discussion started by: ozum
2 Replies
6. Solaris
Hi everyone,
I am hoping anyone of you could help me in this weird problem we have in 1 of our Solaris 10 servers. Lately, we have been having some ftp problems in this server. Though it can ping any server within the network, it seems that it can only ftp to a select few. For most servers, the... (4 Replies)
Discussion started by: labdakos
4 Replies
7. UNIX for Advanced & Expert Users
Hello
I'm facing the above problem while doing a performance run. I've a script which I'm launching from my windows desktop using mozilla. The script will invoke backend action on a Solaris host which in turn feeds the records to a driver located on a linux box(Cent OS).
What's happening is... (1 Reply)
Discussion started by: subramanyab
1 Replies
8. UNIX for Dummies Questions & Answers
Hi Everyone,
Good day.
Scenario:
2 unix servers -- A (SunOS) and B (AIX)
I have an ftp script to sftp 30 files from A to B which happen almost instantaneously i.e 30 sftp's happen at the same time.
Some of these sftp's fail with the following error:
ssh_exchange_identification: Connection... (1 Reply)
Discussion started by: jeevan_fimare
1 Replies
9. IP Networking
Hi, I understand assignment qns are not allowed.
However, I need major help.. please teach me how to write a tcp/ip programme using C, wad are the websites that i can refer to?
wad are the codes required for it?
I have never done tcp/ip configurations before, and never learnt C before,... (13 Replies)
Discussion started by: microuniz
13 Replies
10. Cybersecurity
I just started a new job and inherited a Fedora core 3 server. I wanted to open the ftp ports and I wanted to verify this code before I mess things up. From my reading the two lines below should allow ftp access can anyone confirm my attempt.
iptables -A INPUT -p tcp - sport 21 -m state - state... (0 Replies)
Discussion started by: mungaz
0 Replies
mktemp(1) General Commands Manual mktemp(1)
Name
mktemp - make a name for a temporary file
Syntax
mktemp [ -c ] [ -d directory_name ] [ -p prefix ]
Description
The command makes a name for the pathname of a temporary file and writes that name to standard output. The name will not duplicate that of
an existing file. The command does not create a new file. The file named must actually be created before can generate a new filename.
Subsequent calls to will only generate a new file name if all previously generated file names have been created by the user and still
exist. Error messages are written to standard error.
The directory_name generated by is the concatenation of a directory name, a slash (/), a file prefix, a dot (.), a four digit number and a
unique character.
The directory name is chosen as follows:
(1) If the -d option is specified, directory_name is used.
(2) Otherwise, if the TMPDIR environment variable is set and a string that would yield a unique name can be obtained using the value of
that variable as a directory name, this value is used.
(3) Otherwise, is used.
The prefix is chosen as follows:
(1) If the -p option is specified, prefix is used.
(2) Otherwise, if the LOGNAME environment variable is set, it is used as the prefix.
(3) Otherwise, the user's login name is used.
Options
-c Causes to attempt to create a regular file using the generated (or created) name string. If file creation is successful, a zero
length file is created with access permissions derived from the process's file mode creation mask, see No attempt is made to
create a file if the length of the generated (or created) name string exceeds 1023 characters. It is the user's responsibility
to remove files created by use of this option.
-d directory_name
Causes directory_name to be used as the directory portion of the pathname. In this case, directory_name is used instead of
TMPDIR and
-p prefix Causes the string prefix to be used as the file's prefix. It is used instead of LOGNAM and the user's login name. If the pre-
fix is longer the 249 characters, it will be silently truncated to that length before the concatenation of the suffix.
Environmental Variables
LOGNAME When the -p prefix option is not specified, the value of this variable is used as the prefix of the filename, if it exists.
TMPDIR When the -d directory_name option is not specified, the value of this variable is used instead of
Restrictions
If the user does not have write permission in the directory specified, and error message is reported and is used in its place. The entire
path name can not exceed 1023 characters, and the temporary file name can not exceed 255 characters. If the generated file name is too long
it is truncated to fit before the suffix is added.
See Also
mktemp(1)