File: yafc_shell.texi

package info (click to toggle)
yafc 1.3.7-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,400 kB
  • sloc: ansic: 18,791; sh: 4,216; makefile: 164; perl: 38
file content (60 lines) | stat: -rw-r--r-- 1,948 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
@node The shell, Configuration, Invoking Yafc, Top
@chapter The shell

Yafc presents the user with an internal shell.

@menu
* Yafc commands::               all yafc internal commands
* Command redirection::
* Nohup transfers::             
@end menu

@c =====================================================
@include yafc_commands.texi

@c =====================================================
@node Command redirection, Nohup transfers, Yafc commands, The shell
@section Command redirection

Command redirection is available, using the conventional shell syntax.
However, there are some restrictions. Firstly, input redirection is not supported.
Also asynchronous mode is not supported.

Examples:

@table @samp

@item @code{cat foo.txt > foo}
Will copy the remote file foo.txt to the local file foo.

@item @code{ls -l | less}
Will list all the files in long format, paged through less.

@item @code{ls -l | emacs &}
This won't work, you can't use asynchronous mode.

@item @code{open < login.foo}
Input redirection is not supported.

@end table

@c =====================================================
@node Nohup transfers, , Command redirection, The shell
@section Nohup transfers

Get and Put has an option @samp{--nohup}.

When given, Yafc will fork itself
to the background and continue to transfer the specified files,
allowing you to use your shell or even logout. Output
is redirected to the file @file{~/.yafc/nohup/nohup.pid}, or to file specified
by option @samp{--logfile=@var{FILE}}. 
   
If you have tagged any files (with the @code{tag} command, see @ref{tag}), add
the option @samp{--tagged} to the get command to transfer those files too.
There is an equivalent command for local files and put, namely @code{ltag}.

Yafc will also enter nohup mode upon receipt of @code{SIGHUP}.

Set @var{nohup_mailaddress} in the yafcrc file to a valid mail address if you
want to receive a mail notifying you when the transfer is complete.