![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bash Shell to sh Shell In a Script | saurabh84g | Shell Programming and Scripting | 8 | 08-29-2008 05:51 AM |
| Bash Source Code | bhargava | Shell Programming and Scripting | 1 | 11-20-2006 03:45 PM |
| Bash Shell | BG_JrAdmin | Linux | 1 | 08-07-2006 01:56 PM |
| Bash shell ... | VijayHegde | Shell Programming and Scripting | 2 | 06-06-2006 08:09 AM |
| how to convert from korn shell to normal shell with this code? | forevercalz | Shell Programming and Scripting | 21 | 11-23-2005 02:18 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
xml code in bash shell
Hi,
I am trying to develop a bash script that contains an xml code. I want to put the xml code inside the bash script. Is there a way to make that happen?! My goal is to create a script that can allow the user to enter some parameters which can be passed by the script to the xml code .Kindly advise .. Thank you,, ![]() |
|
||||
|
Quote:
Thanks for responding, ![]() Yes, I am trying to do that. But the xml code is not separated. To be more specific: What I am trying to do is to put the xml code in a sub function or a message that can be called later in the script, as the following: Code:
#! /bin/bash message= "POST /Servername HTTP/1.1 User-Agent: Admin Host: localhost Authorization: Basic <authentication> Content-Type: text/xml Content-Length: 915 <?xml version="1.0"?> ... <...>" # To run the xml code: $message | telnet 0 10010 Can you please explain how I can use the perl or sed? Thanks again ! |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|