Save an specific part of a expect_out in a variable
I have a expect file like this
The result of the readlink will be a number like 447. that's what I want in my log file. but what I'm getting is:
how can I get just CCM: 447?
I want to save the contents of a variable to a file. How can that be achieved?
I have tried with:
echo $varname > textfile.txt
but for some reason it does not print anything. (1 Reply)
I am trying unsuccessfully to set into a variable a specific part of command output:
The command output will be as:
line 1: <varied>
line 2: 2 options:
option 1:
Set view: ** NONE **
or
option 2:
Set view: <different_name_of_views_always_without_spaces>
and I would like to get into... (7 Replies)
Hi,
I have a 3rd party tool on Solaris 8. I am running it thorugh my script but I am not able to capture its output into a variable.
Like, I tried, but did not work.
output=`/usr/bin/myTool`
echo $output
Also, I tried saving in a file but when I run, output is always shown on the... (19 Replies)
I am trying to use send and receive using expect. the expect_out(buffer) is working fine while it is running it as foreground. But the same script when it is ran as background, the expect_out(buffer) errored out.
Is there any factor influence when we run script in foreground and in background? ... (0 Replies)
Hi
i have a file which has mutiple line in it.
inside that i have a pattern similar to this
/abc/def/hij
i want to fine the pattern starting with "/" and get the first word in between the the symbols "/" i.e. "abc" in this case into a variable.
thanks in advance (13 Replies)
Hi,
I have 80 large files, from which I want to get a specific value to run a Bash script. Firstly, I want to get the part of a file which contains this:
Name =A
xxxxxx
yyyyyy
zzzzzz
aaaaaa
bbbbbb
Value = 57
This is necessary because in a file there are written more lines which... (6 Replies)
Hello,
I have a script that checks every file with a specific extension in a specific directory. The file names contain some numerical output and I am recording the file names with the best n outcomes.
The script finds all files in the directory with the extension .out.txt and uses awk to... (12 Replies)
Hi all, I have a file that contains characters. How do I get total of spesific character from that file and save the count to a variable for doing for calculation.
data.txt
1
2
2
2
2
3
3
4
5
6
7
8
5
4
3
4 (5 Replies)
I am trying to download all files from a user authentication, password protected https site, with a particular extension (.bam). The files are ~20GB each and I am not sure if the below is the best way to do it. I am also not sure how to direct the downloaded files to a folder as well as external... (7 Replies)
Discussion started by: cmccabe
7 Replies
LEARN ABOUT DEBIAN
apt-dater
APT-DATER(8) [FIXME: manual] APT-DATER(8)NAME
apt-dater - terminal-based remote package update manager
SYNOPSIS
apt-dater [[-(c config|v|[n]r)]]
DESCRIPTION
This manual page documents briefly the apt-dater command.
apt-dater is a program to manage package updats on a large number of remote hosts using SSH.
OPTIONS
apt-dater accepts the following command parameters:
-c config
Use alternative config file. Default is $XDG_CONFIG_HOME/apt-dater/apt-dater.conf.
-v
Show apt-dater version and copyright statement.
-r
Refresh hosts and create XML report on stdout. apt-dater must be compiled with XMLREPORT feature.
-n
Prevent hosts to be refreshed before create XML report (useful for cronjobs which do not have access to SSH key(s)).
ENVIRONMENT
MAINTAINER
The maintainer's name (i.e. used by debtrack). If not set, the GECOS entry for the current user will be used. This environment variable
could be forwarded to remote hosts with the ssh(1) SendEnv+AcceptEnv options.
FILES
~/.config/apt-dater/apt-dater.conf
The configuration file of apt-dater
~/.config/apt-dater/hosts.conf
Contains all hosts you would like to manage
SEE ALSO apt-dater.conf(5), aptitude(1), apt-get(1), debtrack, screen(1), ssh(1).
AUTHORS
Andre Ellguth <ellguth@ibh.de>
Maintainer.
Thomas Liske <liske@ibh.de>
Maintainer.
Jens Haser <jens_dd@hotmail.de>
Fixed some UI glitches.
COPYRIGHT
Copyright (C) 2008-2012 IBH IT-Service GmbH [http://www.ibh.de/]
[FIXME: source] May 29, 2012 APT-DATER(8)