The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
how to Invoke html in ksh Script ali560045 Shell Programming and Scripting 4 11-29-2007 09:28 PM
Bourne: How to invoke an alias from within a shell script techshots Shell Programming and Scripting 2 06-03-2006 09:38 PM
invoke same script twice mpang_ Shell Programming and Scripting 2 04-05-2006 03:14 AM
Invoke java program in script mpang_ Shell Programming and Scripting 0 03-27-2006 07:05 PM
how to invoke shell script gopa_mani Shell Programming and Scripting 1 12-30-2005 07:43 PM

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-19-2008
Registered User
 

Join Date: Dec 2007
Posts: 8
need to invoke a shell script from xml file.

hi all,
forgive me if this question is not relevant to this section.
i have a shell file that will automatically deploy the files that are necessary and will compile them. i need to automate this management process through cruise control, for this i need to know whether it is possible for me to inovke the shell script through that xml file ..
thanks in adavance
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-19-2008
...@...
 

Join Date: Feb 2004
Location: NM
Posts: 3,511
Not unless you have another script to extract the name of the script and run it.
There is no way, AFAIK, to invoke something directly from the command line that lives inside an xml file. Mainly because it has to be "decoded" or parsed out of xml.
Reply With Quote
  #3 (permalink)  
Old 05-19-2008
Moderator
 

Join Date: Dec 2003
Location: /ksh93
Posts: 883
I did something like this a few years ago, but I had to write a custom C program
which used libxslt and libxml2 routines to extract the required command line and
then system() to execute the command.
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 03:50 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0