11-15-2007
Avoid creating temporary files on editing a file in Ubuntu
Hi,
My ubuntu flavor always create temporary files having filename followed by ~ on editing. For eg: if I am editing a file called "sip.c", automatically a temporary (bkup) file is getting created with the name "sip.c~". How to avoid this file creation?
9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello everyone,
I am creating a temporary file in my ksh by using something file
filetemp=filetemp.$$
Later on in my script I write to the file $filetemp by 'cat'ing to it.
Then in the script I am doing a 'less' on the file to view it.
At the end of the script I issue a rm $filetemp 2>... (4 Replies)
Discussion started by: gio001
4 Replies
2. UNIX for Advanced & Expert Users
BASH shell:
I'm trying to create a copy of the /etc/passwd file named "./copy-passwd" that contains only the entries for userids that have a home directory in /home/inst, and then change each entry in the copy so that the default login shell is /bin/sh.
Would "sed" be the best choice of file... (1 Reply)
Discussion started by: raidkridley
1 Replies
3. Shell Programming and Scripting
Dear other forum members,
I'm writing a script for my homework, but I'm scratching all over my head and still can't figure out what I did wrong. Please help me. I just started to learn about bash scripting, and I appreciate if anyone of you can point out my errors. I thank you in advance.
... (3 Replies)
Discussion started by: ilove2smoke
3 Replies
4. Shell Programming and Scripting
Hi,
I am looking to use rsync in a very specific way, and even though I have trawled the rsync man pages I have not succeeded in seeing a way of doing the following:
The temporary files created by rsync should not be created in the destination directory. (I have used --temp-dir option to... (0 Replies)
Discussion started by: LostInTheWoods
0 Replies
5. UNIX for Advanced & Expert Users
I want to create a folder for users to put their temporary files and a folder for users to put their permanent files. For the temporary folder, I need to implement a deletion policy. I would like to know normally which time, ctime, mtime or atime, should be used to implement such deletion policy. (1 Reply)
Discussion started by: marctc
1 Replies
6. AIX
Hi,
Some porocess is creating hidden temporary files in /tmp directory. And they are not getting deleted. System is going out of disk space after some days.
The temp files are getting created like .<user name><pid>. I have checked the application code, but didnt get any clue. Does these files... (4 Replies)
Discussion started by: viswath.sen
4 Replies
7. Solaris
I am interested in doing some heavy video work. I have a ADVC 110 Video capture device, which I am using to capture VHS video tapes, which I will convert on the server to DVD format and burn to DVD's using DVD production software. I will also take the captured video file and split it up in parts... (1 Reply)
Discussion started by: Marcus Aurelius
1 Replies
8. Programming
Hi,
My Code is as below:
nbECRITS = fwrite(strstr(data->buffer, ";") + 1, sizeof(char), (data->buffsize) - LEN_NOM_FIC, fic_sortie);
fclose(fic_sortie);
sprintf(PATH_BALISE, "%s.balise", PATH);
fic_balise_data = fopen(PATH_BALISE, "a+");
if (fic_balise_data == NULL) {... (1 Reply)
Discussion started by: ezee
1 Replies
9. Shell Programming and Scripting
I need edit some characters in a file, but without creating intermediatory file and also one liner.
I tried:
cat foo.txt | sed '/s/abc//g' > foo.txt
cat foo.txt | sed '/s/abc//g' >> foo.txt
First one is making foo.txt to zero byte, while second one is appending my desired output... (4 Replies)
Discussion started by: karumudi7
4 Replies
SIP(1) General Commands Manual SIP(1)
NAME
sip - generates C++/Python bindings
SYNOPSIS
sip [-h] [-V] [-a file] [-c dir] [-d file] [-e] [-g] [-I dir] [-j #] [-k] [-m file] [-o] [-p module] [-P] [-r] [-s suffix] [-t tag] [-w]
[-x feature] [-z file] [file]
DESCRIPTION
sip takes a set of specification files and generates C++ code, documentation and build files.
The format of the needed specification file is similar to a C++ header. sip includes run-time support for the generated code.
OPTIONS
-h Show summary of options.
-V Display the sip version number
-a file
The name of the QScintilla API file. If not indicated, it will not be generated.
-b file
The name of the build file. If not indicated, it will not be generated.
-c dir The name of the directory where generated source file will be put. If not indicated, no code will be generated.
-d file
The name of the documentation file. If not indicated, no documentation will be generated.
-e Enable support for exceptions. Disabled by default.
-g Always release and reaquire the GIL.
-I dir Directory where sip can search for included files.
-j number
Splits the generated code in number files (1 by default). This flag was added for parallel compilation on SMP machines.
-m file
The name of the XML export file. If not indicated, the file will not be generated.
-p module
Give the name of the consolidated module this module should be a part of.
-P Enable the protected/public hack.
-r Enable tracing on generated code.
-s suffix
The suffix used for generated C or C++ files (".c" or ".cpp" if none specified)
-t tag The primary version to tag generate code for. You only can specify those defined with a %Timeline directive. If you don't specify
one, sip will generate the latest available.
-w Enable warning messages
-x feature
Disable a feature
-z file
The name of a file containing additional command line flags
file The name of the file containing the specification. If you skip it, sip will expect to be fed by stdin.
AUTHOR
This manual page was written by Ricardo Javier Cardenes Medina <rcardenes@debian.org> and Torsten Marek <shlomme@debian.org>, for the
Debian GNU/Linux system (but may be used by others).
2010/02/02 SIP(1)