CLOSE(2) System Calls Manual CLOSE(2)NAME
close - close a file
SYNOPSIS
close(fildes)
DESCRIPTION
Given a file descriptor such as returned from an open, creat, dup or pipe(2) call, close closes the associated file. A close of all files
is automatic on exit, but since there is a limit on the number of open files per process, close is necessary for programs which deal with
many files.
Files are closed upon termination of a process, and certain file descriptors may be closed by exec(2) (see ioctl(2)).
SEE ALSO creat(2), open(2), pipe(2), exec(2), ioctl(2)DIAGNOSTICS
Zero is returned if a file is closed; -1 is returned for an unknown file descriptor.
ASSEMBLER
(close = 6.)
(file descriptor in r0)
sys close
CLOSE(2)
Check Out this Related Man Page
CLOSE(7) PostgreSQL 9.2.7 Documentation CLOSE(7)NAME
CLOSE - close a cursor
SYNOPSIS
CLOSE { name | ALL }
DESCRIPTION
CLOSE frees the resources associated with an open cursor. After the cursor is closed, no subsequent operations are allowed on it. A cursor
should be closed when it is no longer needed.
Every non-holdable open cursor is implicitly closed when a transaction is terminated by COMMIT or ROLLBACK. A holdable cursor is implicitly
closed if the transaction that created it aborts via ROLLBACK. If the creating transaction successfully commits, the holdable cursor
remains open until an explicit CLOSE is executed, or the client disconnects.
PARAMETERS
name
The name of an open cursor to close.
ALL
Close all open cursors.
NOTES
PostgreSQL does not have an explicit OPEN cursor statement; a cursor is considered open when it is declared. Use the DECLARE(7) statement
to declare a cursor.
You can see all available cursors by querying the pg_cursors system view.
If a cursor is closed after a savepoint which is later rolled back, the CLOSE is not rolled back; that is, the cursor remains closed.
EXAMPLES
Close the cursor liahona:
CLOSE liahona;
COMPATIBILITY
CLOSE is fully conforming with the SQL standard. CLOSE ALL is a PostgreSQL extension.
SEE ALSO DECLARE(7), FETCH(7), MOVE(7)PostgreSQL 9.2.7 2014-02-17 CLOSE(7)
I am having a problem with the following statement in a korn shell script:
if "$all_recs" = "ALL"; then
commands
fi;
I keep getting the error syntax error at line 999 : 'then' unmatched.
I'm sure it is a minor problem, but have been unable to find any answers online. Any help... (22 Replies)
Hello
If you want a short description read my last thread!
I have no root access anymore. No remote access! By user access i get a programm started and when i close it, i got logged off!
So I guess I messed up the passwd file!
is there a chance of booting a unix system (SCO-UNIX UnixWare... (15 Replies)
Hello all
im trying to make daemon that listen for incoming textiles
and then it will move them to defined directory now the daemon part is ok
but im stack on how to check of file is close and done copied to directory .
so i could process it and move it forward
tnx (13 Replies)
Discussion started by: umen
13 Replies
4. Post Here to Contact Site Administrators and Moderators
I routinely watch for threads that have been unanswered for some time. Recently a rule has been implemented to close threads older than 3 months, which is rather restrictive, because now the last few pages of the unanswered threads section cannot be replied upon, but more importantly eliminates the... (23 Replies)
Hi All,
I have followed the steps to set up the public and private keys for SFTP setup. Somehow the SFTP is not working and I get following errors:
==> sftp -v remote_user@remote_host_name_changed
OpenSSH_5.4p1, OpenSSL 0.9.8m 25 Feb 2010
debug1: Reading configuration data... (12 Replies)
Hi all,
I need a script to delete a large set of files from a directory under / based on an input file and want to redirect errors into separate file.
I have already prepared a list of files in the input file.
Kndly help me.
Thanks,
Prash (36 Replies)
Current code:
cd "PATH"
cmd /c "EXE1.exe"
"EXE2.exe"
Problem:
The Command line stays open after opening the second executable.
I would need a way to open multiple programs and automatically close the command line after they have been opened.
Thanks in advance:
pasc (14 Replies)
Ever since I added these two code blocks to my bash menu it just opens and closes right away. I use a batch file that worked fine until these codes were added and I am not sure what is wrong.
Basically, what I am trying to do in the additional section is if the answer is "Y" then it goes back... (13 Replies)
hi all,
I would need to add the description in the below syntax. let me know the below syntaxt how it can be changed to add the description in the below.
ps -ef | grep "server" | mailx -s "servers currently which are running" operational@acel.com
Server 62 -> Used for User acessing.... (14 Replies)
I am beginning to write a new version of the bash menu below. The previous version worked great and now when I start the updated bash it opens and a some lines print in the terminal and it closes quickly. I know there are errors but how can I see them or fix them, I tried set -x with the same... (12 Replies)
Hi Team,
i need a awk script for reporting purpose, below is the sample output of the log file:
transid=01
name=admin
time=06.58.51
message=test
eof
transid=02
name=account
time=14.58.51
message=live
eof
transid=03
name=bhu3
time=07.58.51
message=testing
eof
requirement : (18 Replies)
My original files are like this below and I distinguish them from the AP_ID (file1 has 572 and file2 has 544). Also, the header on file1 has “G_” pre-pended. NOTE: these are only snippets of very large files and much of the data is not present here.
Original File 1:
... (36 Replies)
Hello all,
I have a csv with with different testcase values in column 5.
year,min,max,Instrument,Testcase
2016,201,1003,GEOTROPH-02116,TATA7980
2016,53,1011,GEOTROPH-01963,TATA7980
2016,3,1024,GEOTROPH-02067,TATA7980
2016,203,1027,GEOTROPH-02011,TATA7980... (16 Replies)
Running Xubuntu 16.04 with shell version "GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu)," I have a working script that consistently renames a Chrome window:
#!/bin/sh
while sleep 1; do
xdotool search --name chrome 2>/dev/null | while read id; do
xdotool set_window --name... (21 Replies)
Hello,
I am running a bash script to do an rsync back on a computer running MacOS High Sierra. This is the script I am using,
#!/bin/bash
# main backup location, trailing slash included
backup_loc="/Volumes/Archive_Volume/00_macos_backup/"
# generic backup function
function backup {... (12 Replies)