04-05-2020
Any attempts / ideas / thoughts from your side?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have an xml file:
<AutoData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Table1>
<Data1 10 </Data1>
<Data2 20 </Data2>
<Data3 40 </Data3>
<Table1>
</AutoData>
and I have to remove the portion xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" only.
I tried using sed... (10 Replies)
Discussion started by: Gary1978
10 Replies
2. Windows & DOS: Issues & Discussions
:confused:
Hello,
Is there any way to use the dir command / some DOS Script to select only first file of similar pattern of files in a direcotory and rename it for example, one directory has 5 files
abc_1005.txt
abc_5256.txt
abc_2001.txt
abc_2003.txt
abc_3006.txt
by use script I would... (2 Replies)
Discussion started by: raghav525
2 Replies
3. Shell Programming and Scripting
Hi,
Iam new to shell scripting.I have below urgent requirement
I want to read attributes (transaction,documentmode) in xml tag with shell scripting and create a filename with these attribues
Xml :
<PURCHASE_10 partner="food" version="1.50" timestamp="2009-03-10T09:56:55"... (3 Replies)
Discussion started by: swetha123
3 Replies
4. Shell Programming and Scripting
I am completely new to bash scripting and now need to write a bash script that would parse a XML file and take out values from specific tags.
I tried using xsltproc, xml_grep commands. But the issue is that the XML i am trying to parse is not UTF 8. so those commands are unable to parse my XML's... (4 Replies)
Discussion started by: shivashankar.g
4 Replies
5. Shell Programming and Scripting
Hi guys,
I'm working on a large set of scripts to move files around several servers and manipulate them for our staff. Basically we're shooting things, the videos hit a server and then need organised due to the language they've been shot in. Our XML (designed for Apple's Final Cut Pro) is right... (6 Replies)
Discussion started by: omfgbunnies
6 Replies
6. Shell Programming and Scripting
I need to extract all text delimited from <name> and </name> tags from an xml file, but not only first occurence. I need to extract all occurences.
I've tried with this command:
awk -F"<name>|</name>" 'NF>2{print $2}'
but it give only first occurence. How can i modify it? (18 Replies)
Discussion started by: ingalex
18 Replies
7. Shell Programming and Scripting
Hi ! I'm working into my first bash script to make some xml modification and it's going to make me crazy lol .. so I decide to try into this forum to take some ideas from people that really know about this!
This is my situation I've and xml file with a lots of positional values with another tags... (9 Replies)
Discussion started by: juampal
9 Replies
8. Shell Programming and Scripting
I tried searching the forums, but couldn't find anything relevant to my question.
I have an xml file like the following:
<topLevel numberBlock="BLOCK1">
<item="content1" title="Content 1">
<RefPath="path/to/file1.txt />
</item>
<item"content2" title="Content 2" >... (4 Replies)
Discussion started by: jl487
4 Replies
9. Shell Programming and Scripting
Hi All,
Hope all you are doing good! Need your help. I have an XML file which needs to be converted CSV file. I am not an expert of awk/sed so your help is highly appreciated!!
XML file looks like this:
<l:event dateTime="2013-03-13 07:15:54.713" layerName="OSB" processName="ABC"... (2 Replies)
Discussion started by: bhaskar_m
2 Replies
10. UNIX for Beginners Questions & Answers
I have multiple xml files where i want to update a subnode if the subnode project points to different project or insert a subnode if it doesn't exist using a xmlstarlet or any other command that can be used in a bash script.
I have been able to update the subnode project if it doesn't point to... (1 Reply)
Discussion started by: Sekhar419
1 Replies
LEARN ABOUT MOJAVE
nns_auto
nameserv::auto(n) Name service facility nameserv::auto(n)
__________________________________________________________________________________________________________________________________________________
NAME
nameserv::auto - Name service facility, Client Extension
SYNOPSIS
package require Tcl 8.4
package require nameserv::auto ?0.3?
package require nameserv
_________________________________________________________________
DESCRIPTION
Please read the document Name service facility, introduction first.
This package provides the exact same API as is provided by package nameserv, i.e the regular name service client. It differs from the for-
mer by taking measures to ensure that longer-lived data, i.e. bound names, continuous and unfulfilled async searches, survive the loss of
the connection to the name server as much as is possible.
This means that the bound names and continuous and unfulfilled async searches are remembered client-side and automatically re-entered into
the server when the connection comes back after its loss. For bound names there is one important limitation to such restoration: It is pos-
sible that a name of this client was bound by a different client while the connection was gone. Such names are fully lost, and the best the
package can and will do is to inform the user of this.
API
The user-visible API is mainly identical the API of nameserv and is therefore not described here. Please read the documentation of name-
serv.
The differences are explained in the sections OPTIONS and EVENTS.
OPTIONS
This package supports all the option of package nameserv, and one more. The additional option allows the user to specifies the time inter-
val between attempts to restore a lost connection.
-delay milliseconds
The value of this option is an integer value > 0 which specifies the interval to wait between attempts to restore a lost connection,
in milliseconds. The default value is 1000, i.e. one second.
EVENTS
This package generates all of the events of package nameserv, and two more. Both events are generated for the tag nameserv.
lost-name
This event is generated when a bound name is truly lost, i.e. could not be restored after the temporary loss of the connection to
the name server. It indicates that a different client took ownership of the name while this client was out of contact.
The detail information of the event will be a Tcl dictionary containing two keys, name, and data. Their values hold all the informa-
tion about the lost name.
re-connection
This event is generated when the connection to the server is restored. The remembered data has been restored when the event is
posted.
The event has no detail information.
DESIGN
The package is implemented on top of the regular nameservice client, i.e. package nameserv. It detects the loss of the connection by lis-
tening for lost-connection events, on the tag nameserv.
It reacts to such events by starting a periodic timer and trying to reconnect to the server whenver this timer triggers. On success the
timer is canceled, a re-connection event generated, and the package proceeds to re-enter the remembered bound names and continous searches.
Another loss of the connection, be it during or after re-entering the remembered information simply restarts the timer and subsequent
reconnection attempts.
BUGS, IDEAS, FEEDBACK
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category nameserv
of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for
either package and/or documentation.
SEE ALSO
nameserv(n)
KEYWORDS
automatic, client, name service, reconnect, restore
CATEGORY
Networking
COPYRIGHT
Copyright (c) 2007-2008 Andreas Kupries <andreas_kupries@users.sourceforge.net>
nns 0.3 nameserv::auto(n)