i'm connecting with ssh from a windows pc to a linux system. i want to start e.g. a download and close my session afterwards. how do i do this without killing the download?
thx in advance. (2 Replies)
Does anybody know how to force a user to automatically logoff a UNIX session if there is no keyboard activity for a period of time? We use COBOL and there is a BEFORE TIME option on the ACCEPT command, however, we do not want to change the many programs we have to detect this.
What we really... (3 Replies)
Hi,
I have a problem for ftp file to server. If the server due to some reason (such as unstable) and disconnect my ftp script. Can the ftp keep automatic retry to connect? If yes, the files can be keep sending to host without duplicate?
HOST=hostname
USER=happyv
PASSWD=happyv
exec 4>&1... (2 Replies)
Hi,
Is is possible when ftp script disconnect by remote server and it can restart to tranfer (such as restart in 10 mins, etc)?
Please help!!!! (1 Reply)
Hi
I am not so good in scripting..trying ot learn it...need guidance of the experts in shell scripting..
Let me explain the scenario first..
a server MX1 is connected to another server MX2 through vpn..every 5 minute a script runs to test vpn connectivity between the 2 servers.when the vpn... (12 Replies)
Hi,
I am trying to write a generic script as a part of a framework which will establish Oracle DB connection once and loops in to check for some files which gives the SQL statements to execute.
The script is running but I am stuck with capturing errors ( ORA and SP) and outputs. Example:
... (4 Replies)
Write a tool that will be displayed in real time, what user connects or disconnects from a system that uses this tool :))
Maybe anyone can help me? (2 Replies)
I think I read that by entering "disconnect <script_name>" somewhere in pppd, that when ppp connection is lost that the named script will be executed. I also see that something similar can be (if I read correctly) in ip-down. Which is correct or are both correct. I want to set off the system... (5 Replies)
Hi Gurus,
I am trying to write a script for checking the status of linux servers by connecting via telnet with port no but to terminate i have to manually type "quit" .how can i terminate the telnet session in script itself.For E.g
=========================================
telnet ipaddress... (3 Replies)
Hi Guys,
I suspect what I'm trying to do isn't possible, but I'm hoping someone can either confirm this or point me in the right direction.
We have a third-party application which transfers a collection of files to our SFTP server ( Ubuntu 12.04 with OpenSSH ) . Once the app disconnects, we... (13 Replies)
Discussion started by: jamesdrinkwater
13 Replies
LEARN ABOUT PLAN9
stat
STAT(5) File Formats Manual STAT(5)NAME
stat, wstat - inquire or change file attributes
SYNOPSIS
Tstat tag[2] fid[2]
Rstat tag[2] fid[2] stat[116]
Twstat tag[2] fid[2] stat[116]
Rwstat tag[2] fid[2]
DESCRIPTION
The stat transaction inquires about the file identified by fid. The reply will contain a 116-byte (DIRLEN in <libc.h>) machine-independent
directory entry laid out as follows:
name[28] file name; must be / if the file is the root directory of the server
uid[28] owner name
gid[28] group name
qid.path[4] the file server's identification for the file
qid.vers[4] version number for given path
mode[4] permissions and flags
atime[4] last access time
mtime[4] last modification time
length[8] length of file in bytes
type[2] for kernel use
dev[2] for kernel use
Integers in this encoding are in little-endian order (least significant byte first). The convM2D and convD2M routines (see fcall(2)) con-
vert between directory entries and C structs.
This encoding may be turned into a machine dependent Dir structure (see stat(2)) using routines defined in fcall(2).
The mode contains permission bits as described in intro(5) and the following: 0x80000000 (this file is a directory), 0x40000000 (append
only), 0x20000000 (exclusive use). Writes to append-only files always place their data at the end of the file; the offset in the read or
write message is ignored, as is the OTRUNC bit in an open. Exclusive use files may be open for I/O by only one fid at a time across all
clients of the server. If a second open is attempted, it draws an error. Servers may implement a timeout on the lock on an exclusive use
file: if the fid holding the file open has been unused for an extended period (of order at least minutes), it is reasonable to break the
lock and deny the initial fid further I/O.
The two time fields are measured in seconds since the epoch (Jan 1 00:00 1970 GMT). The mtime field reflects the time of the last change
of content. For a plain file, mtime is the time of the most recent create, open with truncation, or write; for a directory it is the time
of the most recent remove, create, or wstat of a file in the directory. Similarly, the atime field records the last read of the contents;
also it is set whenever mtime is set. In addition, for a directory, it is set by an attach, walk, or create, all whether successful or
not.
The length records the number of bytes in the file. Directories and most files representing devices have a conventional length of 0.
The stat request requires no special permissions.
The wstat request can change some of the file status information. The name can be changed by anyone with write permission in the parent
directory; it is an error to change the name to that of an existing file. The mode and mtime can be changed by the owner of the file or
the group leader of the file's current group. The directory bit cannot be changed by a wstat; the other defined permission and mode bits
can. The gid can be changed: by the owner if also a member of the new group; or by the group leader of the file's current group if also
leader of the new group (see intro(5) for more information about permissions and users(6) for users and groups). None of the other data
can be altered by a wstat. In particular, there is no way to change the owner of a file.
A read of a directory yields an integral number of directory entries in the machine independent encoding given above (see read(5)).
ENTRY POINTS
Stat messages are generated by fstat and stat.
Wstat messages are generated by fwstat and wstat.
STAT(5)