File: sb2-session.1

package info (click to toggle)
scratchbox2 2.2.4-1debian1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, wheezy
  • size: 5,392 kB
  • ctags: 5,239
  • sloc: ansic: 21,734; sh: 4,360; perl: 2,170; cpp: 1,913; makefile: 610; python: 184
file content (103 lines) | stat: -rw-r--r-- 1,963 bytes parent folder | download
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
.TH sb2-session 1 "21 December 2010" "2.2" "sb2-session man page"
.SH NAME
sb2-session \- manage scratchbox2 sessions
.SH SYNOPSIS
.B sb2-session [COMMAND [PARAMS]]

.SH DESCRIPTION
.B sb2-session
is used to create attachable scratchbox2 sessions.
You can save session even when you haven't done '-S session' during
.I sb2
startup.

Note that you can give parameters to
.B attach
command which are passed verbatim to \fIsb2\fR. If there is only one
session to attach, it is selected automatically.

If no command is given, help text is printed.

.SH COMMANDS
.TP
help
shows help text
.TP
save
saves current session
.TP
list
lists detached sb2 sessions
.TP
delete SESSION
deletes given session
.TP
attach [SESSION [PARAMS]]
attaches to a given session
.TP
setenv VARIABLE VALUE
store a value for an environment variable
.TP
showenv
show stored environment variables

.SH EXAMPLES
Basic usage is:

.RS 4
.nf
[SB2 .. ] $ sb2-session save	# save session
[SB2 .. ] $ ^D				# exit
.fi
.RE

Later we can then attach to this session:

.RS 4
.nf
% sb2-session attach
.fi
.RE

If there are more than one saved session, then:

.RS 4
.nf
% sb2-session list
session.XXXX    TARGET_ARM      My Comment
session.YYYY    TARGET_ARM      My Comment 2
session.ZZZZ    TARGET_MIPS
% sb2-session attach session.YYYY
.fi
.RE

Here we pass '-eR' to \fIsb2\fR and we only have one saved session:

.RS 4
.nf
 % sb2-session attach -- -eR
.fi
.RE

\&'--' marks end of parameter list for sb2-session.

.B setenv VARIABLE VALUE
can be used to add environment variables, that will become active
when a saved session is later taken into use (either by
.B sb2-session attach
or by \fBsb2 -J\fR).

.B setenv VARIABLE VALUE
does not change environment of sessions that are already active.

.B showenv
lists environment variable settings which have been stored with this
tool. It does not show environment variables from other sources.

.SH SEE ALSO
.BR sb2 (1)

.SH AUTHOR
.nf
Mika Westerberg
.fi