{"id":127,"date":"2009-06-20T04:09:39","date_gmt":"2009-06-20T04:09:39","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2009\/06\/20\/ant-script-with-shell-script\/"},"modified":"2021-02-27T09:55:33","modified_gmt":"2021-02-27T09:55:33","slug":"ant-script-with-shell-script","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/","title":{"rendered":"Ant Script with Shell script, How to run shell script from Ant Script?"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4013 aligncenter\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip.png\" alt=\"ant-script-with-shell-script\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<table class=\"mceItemTable\" border=\"0\" width=\"100%\">\n<tbody>\n<tr>\n<td class=\"HEADING\"><b>Ant Script with Shell script<\/b><\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING_BODY\"><b>How to set files Permission in Ant<\/b> | <b>How to set files Permission in Unix<\/b> | <b>Set files Permission in Ant in Unix Environment<\/b><\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING\"><b>Command:<\/b><\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING_BODY\">&nbsp;<\/p>\n<p>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING\"><b>Ant Script to Replace some character in any files<\/b><\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING_BODY\">&nbsp;<\/p>\n<p>&nbsp;<\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING\"><b>How to run shell script using ant\/<\/b><\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING_BODY\">&nbsp;<\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING\"><b>To Remove Some Special Character from Files<\/b><\/td>\n<\/tr>\n<tr>\n<td class=\"HEADING_BODY\">for name in `find PWD -type f`<br \/>\ndo<br \/>\nif [ -f $name ]; then<br \/>\ntr -d &#8220;\\015&#8221; ${name}XXXYYYZZZ<br \/>\nmv ${name}XXXYYYZZZ $name<br \/>\necho &#8220;$name updated&#8221;<br \/>\nfi<br \/>\ndone<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ant Script with Shell script How to set files Permission in Ant | How to set files Permission in Unix [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":4013,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[501,454],"tags":[3047,3045,3044,3050,3051,3048,3043,1668,139,2302,3046,3049],"class_list":["post-127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-others-scripting-language","category-shell-script","tag-ant-and-shell-script-commands","tag-ant-script","tag-ant-script-with-shell-script","tag-ant-via-a-shell-script","tag-call","tag-call-shell-script-from-ant-script","tag-how-to-run-shell-script-using-ant","tag-run","tag-scripting","tag-scripts","tag-shell-script","tag-shell-script-using-ant"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Ant Script with Shell script, How to run shell script from Ant Script? - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ant Script with Shell script, How to run shell script from Ant Script? - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"Ant Script with Shell script How to set files Permission in Ant | How to set files Permission in Unix [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2009-06-20T04:09:39+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:55:33+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"Ant Script with Shell script, How to run shell script from Ant Script?\",\"datePublished\":\"2009-06-20T04:09:39+00:00\",\"dateModified\":\"2021-02-27T09:55:33+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/\"},\"wordCount\":95,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2009\\\/06\\\/ant-script-with-shell-scrip.png\",\"keywords\":[\"Ant and Shell script Commands\",\"Ant Script\",\"Ant Script with Shell script\",\"Ant via a shell script\",\"Call\",\"call shell script from ant script\",\"How to run shell script using ant\",\"Run\",\"Scripting\",\"scripts\",\"Shell script\",\"shell script using Ant\"],\"articleSection\":[\"others scripting language\",\"Shell Script\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/\",\"name\":\"Ant Script with Shell script, How to run shell script from Ant Script? - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2009\\\/06\\\/ant-script-with-shell-scrip.png\",\"datePublished\":\"2009-06-20T04:09:39+00:00\",\"dateModified\":\"2021-02-27T09:55:33+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2009\\\/06\\\/ant-script-with-shell-scrip.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2009\\\/06\\\/ant-script-with-shell-scrip.png\",\"width\":600,\"height\":400,\"caption\":\"ant-script-with-shell-script\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/ant-script-with-shell-script\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ant Script with Shell script, How to run shell script from Ant Script?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Ant Script with Shell script, How to run shell script from Ant Script? - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/","og_locale":"en_US","og_type":"article","og_title":"Ant Script with Shell script, How to run shell script from Ant Script? - scmGalaxy","og_description":"Ant Script with Shell script How to set files Permission in Ant | How to set files Permission in Unix [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/","og_site_name":"scmGalaxy","article_published_time":"2009-06-20T04:09:39+00:00","article_modified_time":"2021-02-27T09:55:33+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"Ant Script with Shell script, How to run shell script from Ant Script?","datePublished":"2009-06-20T04:09:39+00:00","dateModified":"2021-02-27T09:55:33+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/"},"wordCount":95,"commentCount":1,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip.png","keywords":["Ant and Shell script Commands","Ant Script","Ant Script with Shell script","Ant via a shell script","Call","call shell script from ant script","How to run shell script using ant","Run","Scripting","scripts","Shell script","shell script using Ant"],"articleSection":["others scripting language","Shell Script"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/","name":"Ant Script with Shell script, How to run shell script from Ant Script? - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip.png","datePublished":"2009-06-20T04:09:39+00:00","dateModified":"2021-02-27T09:55:33+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2009\/06\/ant-script-with-shell-scrip.png","width":600,"height":400,"caption":"ant-script-with-shell-script"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/ant-script-with-shell-script\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"Ant Script with Shell script, How to run shell script from Ant Script?"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=127"}],"version-history":[{"count":2,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/127\/revisions"}],"predecessor-version":[{"id":4014,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/127\/revisions\/4014"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/4013"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}