10-31-2014
The output suggests that those xml files are located in the config folder.
Do you know the exact location of that config folder?
Are the following commands available? grep, cut, xargs and rm
Will the UNIX pipelines work? Test it like so:
expect "#" {send "show file contents config | grep xml\n"}
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
This is my simple expect scritpt:
#!/usr/bin/expect -f
match_max 100000
set timeout -1
spawn telnet $IP
expect "#"
send -- "shell\r"
expect "*Ready*"
send -- "init\r"
expect "*Ready*"
send -- "readsensor \r"
expect -- "*" <<< Output of this is a 2 digit number
set val... (5 Replies)
Discussion started by: expect_user
5 Replies
2. Shell Programming and Scripting
I have only some info into my buffer, but after a rssi command I see the folowing lines expected into buffer but not present :
rssi=-106
rssi=-109
I see in my buffer only the first part of the output, here you are a part of script :
#!/usr/bin/expect -f
#global expect_out
match_max 10000000... (1 Reply)
Discussion started by: ugobale
1 Replies
3. Shell Programming and Scripting
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)
Discussion started by: shellscripter
0 Replies
4. Shell Programming and Scripting
expect "#"
send "terminal-length 0\r"
expect "#"
send "show mp cpu\r"
expect "#"
send "show mp memory\r"
expect "#"
while {1} {
expect "#"
send "clear counters\r"
sleep 30
... (0 Replies)
Discussion started by: roh_20022002
0 Replies
5. Programming
Greetings,
Having an issue with the expect_out(buffer). in a foreach loop through some switches I am grabbing some arp table information and writing it out to output files (1 each for each switch looped through).
The first iteration works fine. the second iteration of the loop writes the... (0 Replies)
Discussion started by: SuperSix4
0 Replies
6. Shell Programming and Scripting
Hi,
I am trying to write an expect script. Being a newbie in expect, maybee this is a silly doubt but i am stuck here.
So essentially , i want the o/p of one router command to be captured . Its something like this
Stats
Input Rx : 1234
Input Bytes : 3456
My expect script looks ... (5 Replies)
Discussion started by: ashy_g
5 Replies
7. Shell Programming and Scripting
Hello "expect" experts
I am new at Expect. I have searched for a little while how to capture multiple lines with Expect and I am almost succeeded on that but I don't get all the lines of a command's output that the script executes on a server.
Here is how my script works in a nutshell -
... (6 Replies)
Discussion started by: capacho6666
6 Replies
8. Shell Programming and Scripting
I am trying to read a file via SSH connect and store it to expect_out(buffer). I am a virgin to expect. Help is really appreciated. Wasted almost a day :-(
Code is as follows
expect "system32>"
send "type output.csv";
send "\r";
expect "system32>"
set outcome $expect_out(buffer)... (2 Replies)
Discussion started by: cityprince143
2 Replies
9. Programming
Can some one tell me how to flush expect_out(buffer)?
below is my code
expect -re {.*} {}
expect "swpackages>*"
send -i $con "trial.bat \r"
set outcome $expect_out(buffer)
expect "*continue*"
set prevreport $expect_out(buffer)
send "\r \r";
problem is :- I am getting "pre" stuffs... (0 Replies)
Discussion started by: cityprince143
0 Replies
10. Shell Programming and Scripting
I have a code like this :
set ipv6_acl_max_chars test_acl_max_chars123456a789%s%d2345678ww134rt789qa23456789012345%c89012%a56789012x4r67890test_acl_max_chars1234567890.01234aabcdob34567aBC0
spawn telnet $myip
expect "Login:" { send "admin\r" }
expect "Password:" {send "admin\r" }... (0 Replies)
Discussion started by: ylucki
0 Replies
LEARN ABOUT DEBIAN
mconfig
Mono(mconfig) Mono(mconfig)
NAME
mconfig, - Utility for modifying .NET configuration files
SYNOPSIS
mconfig [options] command [command_parameters]
DESCRIPTION
mconfig can be used to edit .NET configuration files, by adding "features" (that is sets of xml statements) defined in one of the config
files read by mconfig. The config file can also define layouts of default configuration files, which may be useful for bootstrapping your
.NET projects.
To see the list of recognized commands, default configuration files and features, run mconfig without passing any parameters.
OPTIONS
-c <config_file>, --config=<config_file>
Read the specified config file after reading the other, preconfigured, config files for the utility. Settings in the specified file
override those found in the other configuration locations.
-t {any | web | application}, --target={any | web | application}
Features and default configuration files defined in the mconfig config file(s) can be assigned to one of the three targets - web
(for ASP.NET features/config files), application - for .NET applications, any - applicable in both of the previous targets. Defaults
to any.
-?, -h, --help
Show a summary usage screen.
-v, --version
Show the mconfig version
COMMANDS
{addfeature, af} <feature_name> [config_file_path]
Adds the feature named <feature_name> to the specified config file. If [config_file_path] is omitted, the name of the output config-
uration file will be chosen based on the selected target (see the -t option). The web target outputs configuration to file named
Web.config, and the application target outputs to file named application.exe.config. The any target does not have a default output
file.
If the specified config file exists, the feature will be injected into it at the locations specified by mconfig configuration. If
the target config file does not exist, it will be created and will contain only the specified feature and all its dependencies.
{defaultconfig, dc} [config_name [target_directory]]
Generates a default config file using the configuration entry named [config_name] and outputs the resulting configuration file to
the directory given by the [target_directory] option. If [config_name] is omitted, it defaults to Web.config for the web target and
application target. The any target does not specify any default output configuration name. If the [target_directory] parameter is
omitted, it defaults to the current directory.
Name of the output config file created in [target_directory] is given in the config file layout definition.
FILES
Config files are read in the order given below. Each subsequent file may override settings found in the files read before it.
$prefix/etc/mono/mconfig/config.xml
The default configuration file, distributed with mconfig. $prefix is the mconfig installation prefix specified on the compilation
time.
$config_dir/mconfig/config.xml
$config_dir is the directory specified in the XDG_CONFIG_HOME environment variable or,
if it is empty, in the .config directory located in the user's home directory. This file is not distributed with Mono.
./mconfig.xml
Local configuration file which can contain per-application settings.
SEE ALSO
mconfig.config (5)
AUTHOR
Written by Marek Habersack
COPYRIGHT
Copyright (C) 2007 Novell, Inc (http://www.novell.com)
MAILING LISTS
Visit http://lists.ximian.com/mailman/listinfo/mono-devel-list for details.
WEB SITE
Visit: http://www.mono-project.com for details
Mono(mconfig)