This technote shows various usefull Sytem Administration Command
at -f INA_maint.sh 0600am Friday at -f INA_maint.sh 0600am Jan 24 batch<<! sort filename 2>&1 >outfile | mail logini !
* A number in the specified range. To run a command in May, specify 5 in the month field.
* Two numbers separated by a dash to indicate an inclusive range. To run a cron job on Tuesday through Friday, place 2-5 in the weekday field.
* A list of numbers separated by commas. To run a command on the first and last day of January, you would specify 1,31 in the day_of_month field.
* An * (asterisk), meaning all allowed values. To run a job every hour, specify an asterisk in the hour field.
dbs/ INA_stats.sh -> statistique sur une table (pas d'argument) INA_givelocks.sh-> donne les noms des utilisateurs accédant en écriture sur une table. INA_lock.sh -> tente de modifier une table via INA_lock.sql en tant que max extent. Pour celà il faut que personne n'accede en lecture à la table. INA_shutdown.sql -> force le depart de tous INA_rollback.sql -> modifie le rollback segment en créant un rollback temporaire INA_up.sql ->
dbs/script scripts à Michel
Sous Logon Root: /users/fturi start -> demarre decompte connection (pseudo cron vi at) stop -> arrete decompte connection tail tele-ora.log Date:NbConnection Prod,Test Ping Inaradio+tmp at -l pour verifier que le process est bien mort.
CheckUp: - mailx - /var/adm/log Aix: voir smit Recherche de bug Genérer rapport à partir de /var/adm/ras
-> chercher Logs alert,critical !!! -> notice,<- pb kernel<- tjs là permet de verifier que ca marche A ce moment là , le traiter puis les copier en O.... remettre à blanc via #>notice - /tmp regarder les logs exp1 exp2 (exp2==sauvegarde BdD)
- /usr/oracle/rdbms/log -> chercher alert_****.log (***= INASID) ne pas y toucher.
-/usr/oracle/dbs sh utv.sh -> donne pourcentage du table space
================================================================================
<BATCH> 07/05/1996 17:10 07/05/1996 17:10
================================================================================
INA15
\dlt\runseq\runseq.ini et \dlt\runseq2\runseq.ini
On modifie si besoin runseq2\runseq.ini mais la reference est
\dlt\runseq\runseq.ini.
En cas de plantage copy \dlt\runseq\runseq.ini \dlt\runseq2\runseq.ini
pour repartir d'une version propre.
Tous Les Matins: CoToTam Collecte Tele
Tous Les Jours: Synchro (Synchronisation des lexiques via ftf programmée) Icone: Poignée de Main dans Tele.
\dlt\runseq.log -> CR du RUNSEQ de tous les batch effectués. \dlt\cototam.log <- celui de cototam DATE.ACQ+COTOTAM.OK si OK \dlt\cpfic.bat 2004 recopier DOCU_PRO.COL+cototam.log -> E:\DLT en .zip
Si collecte du WeekEnd via ftf de canevas.bul et document.bul n'a pas
marché ou Collecte de COTOTAM
Si Pb:
le faire à la main d'après \dlt\runseq\runseq.ini pas avant 15h
(FT Il me semble que c'est via la passerele ftf)
=> wincom macro: ...1..._.mac (reception fichier cototam.log)
(version modifiée pour ajouter echo on/echo off dans la macro).
...2..._.mac (transmission de date.acq)
date.acq doit être fabriqué avec la date du jour+ heure sur
17 caractere (cf date2.acq)
+ lancer cototam.pif (resp cantodl.pif,bobtodl.pif)
Tous les Lundis: c:\dlradio\cantodl\cantodl regarder les cantodl.log => verifier derniere ligne=OK \dlradio\cantodl\cpfic 1009 -> recopier canevas.bul zipé vers E:
c:\dlradio\bobtodl\bobtodl \dlradio\bobtodl\cpfic 1009 -> recopie document.bul vers E:
Verifier ft-crash.log => grave (dysfonctionnement du prg) ft-raise.log => lié au donné.
ft.ini [DBG] ... <- modifier pour faire apparaitre plus de trace [WAR] ... <- modifier pour faire apparaitre plus de Warning [BOBTODL] fic_bob=.. fic_ini=.. NbDocSkipped=...
Si une de ces lignes est presente => relancer bobtodl (traitement inachevé) pour le refaire partir là ou il en était.
Utiliser ^C pour arreter /pause /continue/Abort.
Autconv.exe une fois passé 14 le met à 1.: Autconv.ini
A lancer le plus tot possible dans la semaine si bobtodl et cantodlse sont bien passé. Effectuer pas 13 et 14 sur le mois en cours. (Chaque pas contient la clause SQLDynamique Where ). => création de autconv.ok et autconv.nok
Les autres pas sont lancé de temps en temps si approprié(pas particulièrement long). ================================================================================ -1 ORACLE **************************************************************** ================================================================================ <sqlplus> 11/10/95 11/10/95 ================================================================================ sqlplus -s ina/ina < toto.sql | tee titi
================================================================================ <sqldba> 11/10/95 11/10/95 ================================================================================
sqldba command=@toto.sql > titi &
sqldba command=@<<! connect sys/change_on_install
alter index CASE_ANTENNE_PK storage (maxextents 100 next 200k); alter table CASE_ANTENNE storage (maxextents 100next 200k); !
I Aide ************************************************************************
-------------------------------------------------------------------------------- <man> command -------------------------------------------------------------------------------- man -k keyword -> q to quit more prompt Possibilité de basculer vers VI. man utilise more -s
III application ********************************************************
h header h a all header h d header of deleted messages enter next - previous d delete dp delete and next
dp delete and next msg d delete current msg h history of messages q quit and delete e exit without delete
- Lire un message: Tapez son numero
- Enregistrer un fichier: a Nr_lettre Nom_du_fichier
- Verifier envoi: Sous Unix: mail
- Directory: H - Repondre a un message : R
- Sortir: EXIT
ex:
set utc2="txsegm1@frutc51 fturi" set potes="fbarou ebello eclemot" set potes2="fbarou ebello eclemot fturi" alias poster 'mail \!:1 -s "Fichier \!:2" < \!:2'
alias mailutc 'mail $utc2 -s "Fichier \!* " < \!* '
IV System **************************************************************** -------------------------------------------------------------------------------- <uname> -a
-C multi column sorted down the columns -c use last modification instead of creation ls -logc
-x multi column sorted accros the columns
-R recursive search -L list linked information rather than normal information
-e extent attributes (-le)
-i print inode -n owner & group id ex: ls -l[Fq]
ls -xL[pq] ls -x[Fq]
ls -ld[Fq] fturi ls -ld /u?? => donne les droit de /u?? ls -R*/core
-------------------------------------------------------------------------------- <assmgmt> - manage /etc/shadow & /etc/passwd -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- <pwconv> - updates /etc/shadow from /etc/passwd -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- <passwd> --------------------------------------------------------------------------------
-n min field -x max -w warn => lifetime
#file unlock.sh $Header:$ #$Log$ #Ce shell permet de deverouiller un user chsec -f /etc/security/lastlog -s $1 -a unsuccessful_login_count=0 chuser expires=0 $1 #file unlock.sh fin
--------------------------------------------------------------------------------
<ln> - link file
19/06/96 19/06/1996 18:38
--------------------------------------------------------------------------------
ln [-s] /repertoire/physiqueRepertoire.Lien.A.Creer
-shardlink pour repertoire
ex:
sous /users/fturi/mistral/exploit:
ln -s /home/export export
ou bien ln -s ~/export export
-------------------------------------------------------------------------------- <cp> - copy file25/07/1996 10:15 12/09/1996 18:22 --------------------------------------------------------------------------------
-i confirm before overwritting 07/08/1996 14:58 -p preserve permission, right -r recursive -R idem as -r except directory created belong to owner. -p preserve date/time/permission
ex: cp -r sourcedir targetdir && rm -rf sourcedir <=> mv sourcedir vers targetdir.
ex: cp -p ~/test/relink . <rcp> rcp -p tavel_boot:/telis/sql/*.sql . avec /telis/.rhosts: pouilly_boot telis
-------------------------------------------------------------------------------- <du> - list file 07/08/1996 14:58 07/08/199614:58 --------------------------------------------------------------------------------
df -vi df -k .
-------------------------------------------------------------------------------- <lsfs> - list file 29/09/95 lundi 27 avril1998 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- <lsdev> - list file 29/09/95 lundi 27avril 1998 -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- <which> - find file in path 29/09/9529/09/95 --------------------------------------------------------------------------------
-------------------------------------------------------------------------------- <chmod>: 29/09/95 30/11/199515:40 --------------------------------------------------------------------------------
Comportement different de chown (see chown) chmod [augo][+-=][x..] file ... ex: chmod u+x file - Changer autorisations d acces chmod etendu modification droit etendue a all tous o other monde g group groupe u user soi-meme modification - supprimer ce droit seulement = donner pour l´etendue ce droit seulement + ajouter ce droit droit Fichier r lecture w ecriture,modification x execution Directory r droit de faire un ls w droit de creer un fichier x droit d´acceder aux fichiers (lecture,ecriture,execution) see acledit
-------------------------------------------------------------------------------- <umask> -------------------------------------------------------------------------------- mode par defaut de création de fichier -------------------------------------------------------------------------------- <chgrp>: 19/12/95 30/11/199515:40 -------------------------------------------------------------------------------- chgrp dba * -------------------------------------------------------------------------------- <chown>: 19/12/95 30/11/199515:40 -------------------------------------------------------------------------------- chown telis:dba *b chown -l INFP:mail INFP => modifie droit sur le lien plutot que surle fichier
VII Netware **************************************************************** -------------------------------------------------------------------------------- <rlogin>- remote login (name the machine ==tcp/ip alias) -------------------------------------------------------------------------------- <hostname> give the name of the hos <who> <who am i> <whoami> -------------------------------------------------------------------------------- <finger> -------------------------------------------------------------------------------- [ [-b] [-h] [-l] [-p] ] | [-i] [-q] [-s] [-w] ][-f] [-m] [User| User@Host | @Host ] -b brief -f no header -h no .project -i quick listing -l long form -m User parameter specifies a userID (used for discretion -p Suppresses printing of .planfiles -q Gives a quick listing. -s Gives a short format list. -w Gives a narrow, short-formatlist.
-------------------------------------------------------------------------------- <rwho> Ask For Server Load -------------------------------------------------------------------------------- -------------------------------------------------------------------------------- <gunzip> - GunZip -------------------------------------------------------------------------------- -c towards stdout -t test ex: gunzip -c netscape/russian.tgz|tar -tvf gunzip -c netscape/russian.tgz|tar -xvf - -------------------------------------------------------------------------------- <tar> - archive sur bande --------------------------------------------------------------------------------
-t List Achive -x extract file from archive
-C ChDir before taking next file -h Follow symbolic link ex: tar -cvf /dev/xxx2.1 file1 file2 -C /dir1 file1 file2 path1 tar -tvf /dev/xxx2.1 file1 tar -xvf /dev/xxx2.1 file1 ln bof.sh bof
ln fsf.sh fsf
ln eof.sh eof
-------------------------------------------------------------------------------- <mt> -------------------------------------------------------------------------------- Mount Tape mt -z mt -f /dev/rmt2.1 fsf 3 mt -f/dev/rmt2 rewind mt -f/dev/rmt2 bsf 1 densite supporté Block Size 512 1024 standard AiX NT 512 -------------------------------------------------------------------------------- <lsdev> lsdev -Cc tape -------------------------------------------------------------------------------- donne les densite
open hostname ascii: transmission sur 7 bit binary: transimission sur 8 bit image: transimission sur 8 bit
put,send : transfert machine-ftp -> host get,reicv : transfert machine-ftp <- host mget : transfert machine-ftp <-host multiple (joker)
Commande cote machine Commande cote host
lcd dir cd cdup : retour au pere delete :un fichier mdelete : multiple(joker) mkdir rmdir dir ls rm rename : Information sur host:
pwd:directory courante site: commande specifique rhelp site site help -> information sur cdm du site
BatchMode:
ftp -n -d -s:....
voir Use-dos.txt pour version dos
I file manipulation ******************************************************** append local_file [ remote_file] append a local file to a file on the remote machine cd [remote_directory] lcd [local_directory] local cdup cd .. pwd pwd on remote machine mkdir remote_directory_name
delete remote_file mdelete [ remote_files] Multiple rmdir remote_directory_name rename remote_old_filename remote_new_filename
dir [remote_directory] [local_file] mdir [remote_files] [local_file] Multiple ls [remote_directory] [local_file] mls remotes_files local_file Multiple dir: complete file list ls: abbreviated file list if local, dump dir to local_file
get remote_file [local_file] recv remote_file [local_file] Syn mget remotes_files Multiple copy remote_file to local file put local_file [remote_file] send local-file [remote_file] Syn mput local_files Multiple copy local_file to remote host II login **************************************************************** bye Syn quite quit ftp account [password] open host [port] open session close Syn disconnect close session proxy ftp-command execute an FTP command on a secondary control connection=>transfert between two servers. quote arg1 arg2 send quote verbatim to remote ftp servers use use-name [password] [account] identify yourself to remote host
! [command] run command as a shell command on the local
machine reset clear reply queue status status of current ftp session trace trace packet verbose toggle verbose mode
mode [mode_name] set transfert mode to mode_name struct [struct-name] set the file structure to struct_name type [type-name] set the representation type to type-name tenex to use tenex machine ascii/binary set representation type to network (default=ascii) cr toggle return stripping during network ASCII (LF<->CR/LF) default=LF form [form_name] set carriage control format subtype of the representation type to format_name
case toggle remote computer filenam mapping during fget glob toggle filename expansion, or globbing. runique toggle storing file with unique name (defaultoff) sunique id but on the remote host nmap [inpattern outpattern]
set or unset filename mapping mechanism using $ii for word ntrans [incharset [outcharset]] set or unset filename character translation. sendport toggle the use of port command
debug toggle debug mode hash toggle hash-sign [£] printing for eachdata block transfered prompt toggle interactive prompt
macdef macro_name define a macro with subsequent lines. null line=> terminate macro input max=16 macros=4096 bytes in total $xx => argument xx of macro $i => argument + SHIFT \$ => '$'
! [ command [ args ] ] Invoke an interactive shell on the local machine. If there are arguments, the first is taken to be a command to execute directly, with the rest of the arguments as its arguments.
$ macro-name [ args ] Execute the macro macro-name that was defined with the macdef command. Arguments are passed to the macro unglobbed.
account [ passwd ] Supply a supplemental password required by a remote system for access to resources once a login has been successfully com- pleted. If no argument is included, the user will be prompted for an account password in a non-echoing input mode.
append local-file [ remote-file ] Append a local file to a file on the remote machine. If remote-file is left unspecified, the local filename is used in naming the remote file after being altered by any ntrans or nmap setting. File transfer uses the current settings for type, format, mode, and structure.
ascii Set the file transfertype to network ASCII. This is the default type.
bell Arrange that abell be sounded after each file transfer command is completed.
binary Set the file transfer typeto support binary image transfer.
bye Terminatethe FTP session with the remote server and exit ftp. An end of file will also terminate the session and exit.
case Toggle remotecomputer filename case mapping during mget com- mands. When case is on (default is off), remote computer filenames with all letters in uppercase are written in the local directory with the letters mapped to lowercase. cd remote-directory Change the working directory on the remote machine to remote- directory.
cdup Change the remotemachine working directory to the parent of the current remote machine working directory.
chmod [ mode ] [ remote-file ] Change file permissions of remote file.
close Terminate the FTP sessionwith the remote server, and return to the command interpreter. Any defined macros are erased.
cr Togglecarriage return stripping during ASCII type file retrieval. Records are denoted by a carriage return/linefeed sequence during ASCII type file transfer. When cr is on (the default), carriage returns are stripped from this sequence to conform with the UNIX single linefeed record delimiter. Records on non-UNIX remote systems may contain single linefeeds; when an ASCII type transfer is made, these linefeeds may be distinguished from a record delimiter only when cr is off. delete remote-file Delete the file remote-file on the remote machine.
debug [ debug-value ] Toggle debugging mode. If an optional debug-value is speci- fied, it is used to set the debugging level. When debugging is on, ftp prints each command sent to the remote machine, pre- ceded by the string ``-->''.
dir [ remote-directory ] [ local-file ] Print a listing of the directory contents in the directory, remote-directory, and, optionally, placing the output in local-file. If interactive prompting is on, ftp will prompt the user to verify that the last argument is indeed the target local file for receiving dir output. If no directory is speci- fied, the current working directory on the remote machine is used. If no local file is specified, or local-file is -, out- put comes to the terminal.
disconnect A synonym for close.
form format file.
get remote-file [ local-file ] Retrieve the remote-file and store it on the local machine. If the local filename is not specified, it is given the same name it has on the remote machine, subject to alteration by the current case, ntrans, and nmap settings. The current settings for type, form, mode, and structure are used while transferring the file.
glob Toggle filenameexpansion for mdelete, mget, and mput. If globbing is turned off with glob, the filename arguments are taken literally and not expanded. Globbing for mput is done as in sh(C). For mdelete and mget, each remote filename is expanded separately on the remote machine and the lists are not merged. Expansion of a directory name is likely to be dif- ferent from expansion of the name of an ordinary file: the exact result depends on the foreign operating system and ftp server, and can be previewed by doing `mls remote-files -'.
Note that mget and mput are not meant to transferentire directory sub- trees of files. That can be done by transferringa tar(TC) archive of the subtree (in binary mode).
hash Toggle hash-sign(#) printing for each data block transferred. The size of a data block is BUFSIZ bytes. BUFSIZ is defined in stdio.h.
help [ command ] Print an informative message about the meaning of command. If no argument is given, ftp prints a list of the known commands.
idle Get/set idle timeron the remote machine.
image Same as binary.
lcd [ directory ] Change the working directory on the local machine. If no directory is specified, the user's home directory is used. ls [ remote-directory ] [ local-file ] Print an abbreviated listing of the contents of a directory on the remote machine. The listing includes any system-dependent information that the server chooses to include; for example, most UNIX systems will produce output from the command ls -l. (See also nlist.) If remote-directory is left unspecified, the current working directory is used. If interactive prompting is on, ftp will prompt the user to verify that the last argument is indeed the target local file for receiving ls output. If no local file is specified, or if local-file is -, the output is sent to the terminal. Additional options may be specified by quoting the arguments (e.g., ls ``-rt dir'', will cause a time sorted listing of directory dir to be displayed if the remote operating system is UNIX).
macdef macro-name Define a macro. Subsequent lines are stored as the macro macro-name; a null line (consecutive newline characters in a file or carriage returns from the terminal) terminates macro input mode. There is a limit of 16 macros and 4096 total char- acters in all defined macros. Macros remain defined until a close command is executed. The macro processor interprets ``$'' and ``\'' as special characters. A ``$'' followed by a number (or numbers) is replaced by the corresponding argument on the macro invocation command line. A ``$'' followed by an ``i'' signals that macro processor that the executing macro is to be looped. On the first pass, ``$i'' is replaced by the first argument on the macro invocation command line, on the second pass it is replaced by the second argument, and so on. A ``\'' followed by any character is replaced by that A ``\'' followed by any character is replaced by that character. Use the ``\'' to prevent special treatment of the ``$''.
mdelete [ remote-files ] Delete the remote-files on the remote machine.
mdir remote-files local-file Like dir, except multiple remote files may be specified. If interactive prompting is on, ftp will prompt the user to verify that the last argument is indeed the target local file for receiving mdir output.
mget remote-files Expand the remote-files on the remote machine and do a get for each filename thus produced. See glob for details on the filename expansion. Resulting filenames will then be processed according to case, ntrans, and nmap settings. Files are transferred into the local working directory, which can be changed with lcd directory; new local directories can be creat- ed with`! mkdir directory.
mkdir directory-name Make a directory on the remote machine.
mls remote-files local-file Like nlist, except multiple remote files may be specified, and the local-file must be specified. If interactive prompting is on, ftp will prompt the user to verify that the last argument is indeed the target local file for receiving mls output.
mode [ mode-name ] Set the file transfer mode to mode-name. The default mode is ``stream'' mode.
modtime file-name Show the last modification time of the file on the remote ma- chine.
mput local-files Expand wildcards in the list of local files given as arguments and do a put for each file in the resulting list. See glob for details of filename expansion. Resulting filenames will then be processed according to ntrans and nmap settings. The mput command does not allow specifying remote filenames.
newer remote-file [ local-file ] Get file if remote file is newer than local file.
nlist [ remote-directory ] [ local-file ] Print a list of the files of a directory on the remote machine. If remote-directory is left unspecified, the current working directory is used. If interactive prompting is on, ftp will prompt the user to verify that the last argument is indeed the target local file for receiving nlist output. If no local file is specified, or if local-file is -, the output is sent to the terminal. Additional options may be specified by quoting the arguments (e.g., nlist ``-rt dir'', will cause a time sorted listing of directory dir to be displayed if the remote operat- ing system is UNIX).
nmap [ inpattern outpattern ] Set or unset the filename mapping mechanism. If no arguments are specified, the filename mapping mechanism is unset. If arguments are specified, remote filenames are mapped during mput commands and put commands issued without a specified remote target filename. If arguments are specified, local filenames are mapped during mget commands and get commands issued without a specified local target filename. This command is useful when connecting to a non-UNIX remote computer with different filenaming conventions or practices. The mapping follows the pattern set by inpattern and outpattern. Inpattern is a template for incoming filenames (which may have already been processed according to the ntrans and case settings). Variable templating is accomplished by including the sequences $1, $2, ..., $9 in inpattern. Use ``\'' to prevent this spe- cial treatment of the ``$'' character. All other characters are treated literally, and are used to determine the nmap inpattern variable values. For example, given inpattern $1.$2 and the remote filename mydata.data, $1 would have the value ``mydata'', and $2 would have the value ``data''. The outpat- tern determines the resulting mapped filename. The sequences $1, $2, ...., $9 are replaced by any value resulting from the inpattern template. The sequence '$0' is replaced by the ori- ginal filename. Additionally, the sequence [seq1,seq2] is replaced by seq1 if seq1 is not a null string; otherwise it is replaced by seq2. For example, the command nmap $1.$2.$3 [$1,$2].[$2,file] would yield the output filename myfile.data for input filenames myfile.data and myfile.data.old, myfile.file for the input filename myfile, and myfile.myfile for the input filename .myfile. Spaces may be included in out- pattern, as in the example:
nmap $1 |sed "s/ *$//" > $1 .
Use the ``\'' character to prevent special treatment of the ``$'', ``['', ``]'', and ``,'' characters.
ntrans [ inchars [ outchars ] ] Set or unset the filename character translation mechanism. If no arguments are specified, the filename character translation mechanism is unset. If arguments are specified, characters in remote filenames are translated during mput commands and put commands issued without a specified remote target filename. If arguments are specified, characters in local filenames are translated during mget commands and get commands issued without a specified local target filename. This command is useful when connecting to a non-UNIX remote computer with different filenaming conventions or practices. Characters in a filename matching a character in inchars are replaced with the corre- sponding character in outchars. If the character's position in inchars is longer than the length of outchars, the character is deleted from the filename.
open host [ port ] Establish a connection to the specified host FTP server. An optional port number may be supplied, in which case, ftp will attempt to contact an FTP server at that port. If the auto- login option is on (default), ftp will also attempt to automat- ically log the user in to the FTP server (see below).
prompt Toggle interactive prompting.Interactive prompting occurs dur- ing multiple file transfers to allow the user to selectively retrieve or store files. If prompting is turned off (default is on), any mget or mput will transfer all files, and any mdelete will delete all files.
proxy ftp-command Execute an ftp command on a secondary control connection. This command allows simultaneous connection to two remote ftp servers for transferring files between the two servers. The first proxy command should be an open, to establish the second- ary control connection. Enter the command proxy ? to see other ftp commands executable on the secondary connection. The fol- lowing commands behave differently when prefaced by proxy: open will not define new macros during the auto-login process, close will not erase existing macro definitions, get and mget transfer files from the host on the primary control connection to the host on the secondary control connection, and put, mput, and append transfer files from the host on the secondary con- trol connection to the host on the primary control connection. Third party file transfers depend upon support of the ftp pro- tocol PASV command by the server on the secondary control con- nection.
put local-file [ remote-file ] Store a local file on the remote machine. If remote-file is left unspecified, the local file name is used after processing according to any ntrans or nmap settings in naming the remote file. File transfer uses the current settings for type, for- mat, mode, and structure. pwd Print thename of the current working directory on the remote machine.
quit A synonym forbye.
quote arg1 arg2 ... The arguments specified are sent, verbatim, to the remote FTP server.
recv remote-file [ local-file ] A synonym for get. reget Retrieve a file restartingat the end of the local-file.
restart Restart the transfer of a filefrom a particular byte-count.
rhelp [ command-name ] Request help from the remote FTP server. If a command-name is specified, it is supplied to the server as well.
rstatus [ file-name ] With no arguments, show status of remote-machine. If file-name is specified, show status of file-name on remote machine.
rename [ from ] [ to ] Rename the file from on the remote machine, to the file to.
reset Clear reply queue.This command re-synchronizes command/reply sequencing with the remote ftp server. Resynchronization may be necessary following a violation of the ftp protocol by the remote server.
rmdir directory-name Delete a directory on the remote machine. runique Toggle storing of files on thelocal system with unique filenames. If a file already exists with a name equal to the target local filename for a get or mget command, a .1 is appended to the name. If the resulting name matches another existing file, a .2 is appended to the original name. If this process continues up to .99, an error message is printed, and the transfer does not take place. The generated unique filename will be reported. Note that runique will not affect local files generated from a shell command (see below). The default value is off.
send local-file [ remote-file ] A synonym for put.
sendport Toggle the use of PORT commands.By default ftp will attempt to use a PORT command when establishing a connection for each data transfer. The use of PORT commands can prevent delays when performing multiple file transfers. If the PORT command fails, ftp will use the default data port. When the use of PORT com- mands is disabled, no attempt will be made to use PORT commands for each data transfer. This is useful for certain FTP imple- mentations which do ignore PORT commands but, incorrectly, indicate they were accepted.
size file-name Return size of file-name on remote machine.
status Show the current statusof ftp.
site [ command ] Get/set site specific information from/on remote machine.
struct [ struct-name ] Set the file transfer structure to struct-name. By default, stream structure is used.
sunique Toggle storing of files on remotemachine under unique filenames. Remote ftp server must support ftp protocol STOU command for successful completion. The remote server will report unique name. Default value is off.
system Show the type of operatingsystem running on the remote ma- chine.
tenex Set the file transfertype to that needed to talk to TENEX ma- chines.
trace Toggle packet tracing.
type [ type-name ] Set the file transfer type to type-name. If no type is speci- fied, the current type is printed. The default type is network ASCII.
umask [ mask ] Set user file-creation mode mask on the remote site. If mask is omitted, the current value of the mask is printed.
user user-name [ password ] [ account ] Identify yourself to the remote FTP server. If the password is not specified and the server requires it, ftp will prompt the user for it (after disabling local echo). If an account field is not specified, and the FTP server requires it, the user will be prompted for it. If an account field is specified, an account command will be relayed to the remote server after the login sequence is completed if the remote server did not require it for logging in. Unless ftp is invoked with auto- login disabled, this process is done automatically on initial connection to the FTP server. w verbose Toggle verbose mode. Inverbose mode, all responses from the FTP server are displayed to the user. In addition, if verbose is on, when a file transfer completes, statistics regarding the efficiency of the transfer are reported. By default, verbose is on.
? [ command ] A synonym for help.
Command arguments which have embedded spaces maybe quoted with quote (") marks.
214-The following commands are recognized (* =>'s unimplemented) USER PORT STORMSAM* RNTO NLST MKDCDUP PASS PASV APPEMRSQ* ABOR SITE XMKDXCUP ACCT* TYPE MLFL*MRCP* DELE SYST RMDSTOU SMNT* STRU MAIL*ALLO CWD STATXRMD SIZE REIN* MODE MSND*REST XCWD HELP PWDMDTM QUIT RETR MSOM*RNFR LIST NOOP XPWD
RequestDescription _________________________________________________________________________ ABORabort previous command ACCTspecify account (ignored) ACCTspecify account (ignored) ALLOallocate storage (vacuously) APPEappend to a file CDUPchange to parent of current working directory CWDchange working directory DELEdelete a file HELPgive help information LISTgive list files in a directory (ls -l) MKDmake a directory MDTMshow last modification time of file MODEspecify data transfer mode NLSTgive name list of files in directory (ls) NOOPdo nothing PASSspecify password PASVprepare for server-to-server transfer PORTspecify data connection port PWDprint the current working directory QUITterminate session RESTrestart a file transfer RETRretrieve a file RMDremove a directory RNFRspecify rename-from file name RNTOspecify rename-to file name SITEnon-standard commands (see next section) SIZEreturn size of file STATreturn status of server STORstore a file STOUstore a file with a unique name STRUspecify data transfer structure SYSTdisplay operating system information TYPEspecify data transfer type USERspecify user name XCUPchange to parent of current working directory XCWDchange working directory XMKDmake a directory XPWDprint the current working directory XRMDremove a directory
The following non-standard or UNIX specific commandsare supported by the SITE request.
_________________________________________________________________________ RequestDescription _________________________________________________________________________ UMASKchange umask. e.g. SITE UMASK 002 IDLEset idle-timer. e.g. SITE IDLE 60 CHMODchange mode of a file. e.g. SITE CHMOD 755 filename HELPgive help information. e.g. SITE HELP
USER <sp> username PASS <sp> password ACCT (specify account);unimplemented. QUIT (terminate service) PORT <sp> b0, b1, b2, b3, b4 PASV (set server in passive mode) TYPE <sp> [ A | E | I | L ] STRU (specify file structure) MODE (specify transfer mode) RETR <sp> file-name STOR <sp> file-name APPE <sp> file-name ALLO allocate storage (vacuously) REST (restart command) RNFR <sp> file-name RNTO <sp> file-name ABOR (abort operation) DELE <sp> file-name CWD [ <sp> directory-name ] XCWD [ <sp> directory-name ] LIST [ <sp> path-name ] NLST [ <sp> path-name ] SYST (get type of operating system) STAT [ <sp> path-name ] HELP [ <sp> <string> ] NOOP MKD <sp> path-name XMKD <sp> path-name RMD <sp> path-name XRMD <sp> path-name PWD (return current directory) XPWD (return current directory) CDUP (change to parent directory) XCUP (change to parent directory) STOU <sp> file-name SIZE <sp> path-name MDTM <sp> path-name
SITE UMASK [ <sp> umask ] SITE IDLE [ <sp> maximum-idle-time ] SITE CHMOD <sp> mode <sp> file-name SITE HELP [ <sp> <string> ]
?debug lsputstatus append dirmdelete pwdtrace ascii disconnectmdirquittype bellgetmgetquote user binary globmkdir recvverbose byehashmlsremotehelp cdhelpmputrename close lcdopenrmdir delete literalprompt send
append appendto a file ascii setascii transfer type bellbeep when command completed binary set binarytransfer type byeterminate ftp session and exit cdchange remote working directory close terminateftp session delete deleteremote file debug toggledebugging mode dirlist contents of remote directory disconnect terminate ftp session getreceive file globtoggle metacharacter expansion of local file names hashtoggle printing `#' for each buffer transferred helpprint local help information lcdchange local working directory literal send arbitraryftp command lsnlist contents of remote directory mdelete delete multiplefiles mdirlist contents of multiple remote directories mgetget multiple files mkdir makedirectory on the remote machine mlsnlist contents of multiple remote directories mputsend multiple files openconnect to remote tftp prompt forceinteractive prompting on multiple commands putsend one file pwdprint working directory on remote machine quitterminate ftp session and exit quote sendarbitrary ftp command recvreceive file remotehelp get help from remote server rename renamefile rmdir removedirectory on the remote machine sendsend one file status show currentstatus trace togglepacket tracing typeset file transfer type usersend new user information verbose toggle verbosemode
library is used inthe link phase. This is equivalent to the -strict option. Use the -ansiflag instead if the ANSI-conformant library is required in the linkphase. The -Za is obsolete, and may be removed in a future release.
-Zd Includes line number information in theobject file.
-Ze Enables the far, near, huge, pascal, andfortran keywords. This is equivalent to the-Me option.
-Zg Generates function declarations from functiondefinitions and writes declarations to standardoutput (omits p2, p3, and ld).
-Zi Includes information for the screen-orienteddebuggers dbxtra and Codeview and the symbolicdebugger (sdb) in the output file. This option is equivalentto the -g option.
-Zl Removes default library information fromthe object file.
-Zpn Packs structure members in memory. Theargument n can be one of the following:
1 allocatesalignment to 1 2 allocatesalignment to 2 (default for 80286 programs)
Name
ftpd - DARPA Internet File Transfer Protocol server
Syntax
/etc/ftpd [ -d ] [ -v ] [ -l ] [ -umask ] [ -ttimeout] [ -Tmaxtimeout ]
Description
ftpd is the DARPA Internet File Transfer Protocolserver process. The server uses the TCP protocol and listens at theport specified in the ``ftp'' service specification; see services(SFF).
ftpd is started by the ``super-server'' inetd, andtherefore must have an entry in inetd's configuration file, /etc/inetd.conf(see inetd(ADMN) and inetd.conf(SFF)).
If the -d option is specified, debugging informationis written to the syslog.
If the -v option is specified, debugging informationis written to the syslog (same as the -d option).
If the -l option is specified, each FTP session islogged in the syslog.
If the -u option is specified, the file creationmask will be set to mask.
The FTP server will timeout an inactive session after15 minutes. If the -<ext option is specified, the inactivity timeoutperiod will be set to timeout seconds. A client may also request a differenttimeout period; the maximum timeout limit allowed may be set tomaxtimeout seconds with the -T option. The default limit is 2 hours.
The FTP server currently supports the following FTPrequests; case is not distinguished.
_________________________________________________________________________ RequestDescription _________________________________________________________________________ ABORabort previous command ACCTspecify account (ignored)
-------------------------------------------------------------------------------- <nfs> commands 09/09/1996 11:4109/09/1996 11:41 -------------------------------------------------------------------------------- <exports> /etc/exports = fichiers des repertoiresexportés <exportfs> usually used by /sbin/init.d/<nfs.server>script
ex: <nfsd> nfs daemon <nfssvc> nfs daemon <mount> (1M) /usr/sbin/mount -F nfs ex: /usr/sbin/mount -F nfs Tigre:/dl01/oradir/home/telis/nfs /oradir/home/telis/nfs
<mountd> NFS mount daemon tele: exportfs -u /lib/386 /etc/<rc2.d>/oldS89nfs stop /etc/<rc2.d>/oldS89nfs start exportfs -i /home/fturi/tele exportfs -i /home/fturi/daav/export mount -f NFS inaodt3:/home/fturi/radio /home/fturi/radio mount -f NFS inaodt3:/lib/386 /home/fturi/cc.radio <mount> -f NFS inahp:/oradir/home/telis/daav/export
radio: chmod o+rwx /home/fturi/dl/export chmod o+rw /home/fturi/dl/export/* /etc/exportfs -i /home/fturi/radio /etc/exportfs -i -o rw=inahp:tigre:dell486 /home/fturi/dl/export /etc/exportfs -i -o ro /lib/386 mount -f NFS dell486:/home/fturi/tele /home/fturi/tele umount /home/fturi/dl/import mount -f NFS tigre:/dl01/oradir/home/telis/daav/export /home/fturi/dl/import
inahp: chmod o+rwx ~/daav/export chmod o+rw ~/daav/export/* /usr/sbin/exportfs -u /oradir/home/telis/daav/export /usr/sbin/exportfs -i -o rw=dell486:inaodt3:tigre /oradir/home/telis/daav/export /usr/sbin/umount /oradir/home/telis/daav/import /usr/sbin/mount -F nfs inaodt3:/home/fturi/dl/export/oradir/home/telis/daav/import
tigre: chmod o+rwx ~/daav/export chmod o+rw ~/daav/export/* /usr/etc/exportfs -u /dl01/oradir/home/telis/daav/export /usr/etc/exportfs -i -o rw=dell486:inaodt3:inahp /dl01/oradir/home/telis/daav/export /etc/umount /dl01/oradir/home/telis/daav/import /etc/mount inaodt3:/home/fturi/dl/export /dl01/oradir/home/telis/daav/import
Structure of man page: .I .RB .SM .DT .TH .TH title section# comment newname alternate
.SH section_head .SS sub-section_head .C monspace_font_text .B bold_text .I italic_text .SM small_text .P normal size .HP % hanging_indent_value_paragraph .TP % hanging_tag separate. .IP tag % =HP + TP .IN indent to right .RE % backindent % .PM text_copyright .DT default size (5) .PD defautl VT (1)
string defined: \*R \*S \*(TM .ds footpage definition
E Compilateur ============= f77 sous descartes cc sous descartes cc -o fichier_executable fichier_source remarque cc et f77 compilent et link en meme temps
Options: -o filename_executable -c compilation seulement (pour librairie)
linkeur: ld systeme =======
testeur event: xev chgmt curseur xcursor info xdpyinfo clavier xkeycaps xmodmap clavier NCD N97 touche pave KP_F1 .. KP_F4 KP_1 .. KP_0 KP_Separrator (,) F1.. F12 Escape xkill: clair xload: charge du systeme
xlsatoms xlsclients -> ls des process X actifs xlswins -> reference hexa des process
Compacteurs: pack unpack cpack compress uncompress zcat
xmore : clair
testeur event: xev chgmt curseur xcursor info xdpyinfo clavier xkeycaps xmodmap clavier NCD N97 touche pave KP_F1 .. KP_F4 KP_1 .. KP_0 KP_Separrator (,) F1.. F12 Escape xkill: clair xload: charge du systeme
xlsatoms xlsclients -> ls des process X actifs xlswins -> reference hexa des process
Compacteurs: pack unpack cpack compress uncompress zcat
xmore : clair
xplaces_>info diverses
Systeme mfcf .Xauthority :autorisation d'utiliser une console Unix .history :liste ancien history
config mfcf .profile config mfcf .aliases :fichier alias config mfcf .login :fichier execute (pas tjs) au login config mfcf .logout :fichier execute (pas tjs) au logout
config mfcf mod .Xsession :Process a lancer sous X11 config mfcf mod .cshrc :fichier de commande unix execute au login
XRN .xrnlock :fichier verouillant l'acces a un seul XRN XRN .newsrc :fichier mappant lecture des News sous XRN XRN .oldnewsrc :precedente version de .newsrc RN .rnlast :fichier mappant lecture des News sous RN RN .rnsoft :fichier mappant lecture des News sous RN SUN .sunview :configuration sous SunView
perso SUN .defaults :configuration sous SunView perso VI .exrc :configuration editeur VI perso X11 .Xdefault :configuration des ressources X11 perso FTP .rnhosts :autorisation d'acces au compte perso MAIL .mailrc :configuration du MAIL