Home > The Specified > The Specified Substitution Is Not Valid For This Command Unix

The Specified Substitution Is Not Valid For This Command Unix

If you are experiencing a similar issue, please ask a related question Suggested Solutions Title # Comments Views Activity notReplace challenge 53 109 152d My project did see openJDK that I Since New York doesn't have a residential parking permit system, can a tourist park his car in Manhattan for free? Anyone know if this is possible, and how to do it? Procedures for Recovery Ensure that the printer device is attached to the system.

If the other servers work, it's because they never utilize that PID_FILE variable. if you dont mind can you please let me know exactly where to change as you said in the below?(am sorry for my ignorance). Remove advertisements Sponsored Links reborg View Public Profile Find all posts by reborg #3 04-12-2007 pressy solaris cultist Join Date: Aug 2003 Last Activity: 9 December 2016, It could be sourcing a different profile.

has special meaning in shell/bash/ksh.... Shortest auto-destructive loop Generate 10 numbers and move first number to the end 10 times Meaning of イメージ in context of disclaimer Does being engaged (to be married) carry any legal The wait is over! [AT&TU-verse] by dslwanter649. Find all posts by pressy #4 04-13-2007 Ygor Advisor Join Date: Oct 2003 Last Activity: 15 May 2015, 11:55 AM EDT Location: 54.23, -4.53 Posts: 1,801 Thanks:

Remount the file system with read/write access: mount -o rw Filesystem Directory 0403-011 The specified substitution is not valid for this command Possible Causes You attempted to change directories using a In an arithmetic expansion the shell first expands any other valid shell expansion before attempting to do the math - making the actual math its last order of business. i=10 for var in a b c d e do arr[($var=i*${#arr[@]}+i)/i]=$var done handle array assignment, index evaluation, and $var integer assignment at once because the [index] brackets of a named Hot Network Questions How do you make Fermat's primality test go fast?

vBulletin 2000 - 2016, Jelsoft Enterprises Ltd. It works on so many servers but a couple. Regards, Pavan Join this group Popular White Paper On This Topic Beginner's Guide to VoIP 4Replies Best Answer 0 Mark this reply as the best answer?(Choose carefully, this can't be changed) The time now is 03:06 AM. - Contact Us - UNIX & Linux - unix commands, linux commands, linux server, linux ubuntu, shell script, linux distros. - Advertising - Top

echo 'arr=(a b c d e)' | bash -x + arr=(a b c d e) #bash traces the successful command to stderr echo 'arr=(a b c d e)' | sh -x The below script parses the comma delimited file2. What is shiny and makes people sad when it falls? Computing.Net cannot verify the validity of the statements made on this site.

Report • #3 hardik0907 April 8, 2009 at 04:37:07 Following the ablove help i had build this script:#!/bin/kshfc=1fr=0i=1while IFS="," read arg1 arg2do if [[ fr -eq 0 ]] then fcol="$arg1" scol="$arg2" Last there remains only to print... _print "${arr[@]}" ...which prints to stdout... $a = 10 $b = 20 $c = 30 $d = 40 $e = 50 All of this works UNIX is a registered trademark of The Open Group. There could be all sorts of things that could be different.It could be run by a different user.

For details and our forum data attribution, retention and privacy policy, see here MenuExperts Exchange Browse BackBrowse Topics Open Questions Open Projects Solutions Members Articles Videos Courses Contribute Products BackProducts Gigs More about the author Off-Topic Tags How-tos Drivers Ask a Question Computing.NetForumsProgrammingGeneral Shell Scripting Tags:Process hardik0907 March 19, 2009 at 05:06:45 Specs: Windows XP I want to replace few columns in one file with few What could be the problem 7 104 79d Problem to event 3 61 81d Making an alias 7 64 33d Sudoku, a complete MFC application. You can rely upon sed or `cut -c 1-80` commands to extract substring when bash is not available.

In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming. .NET Programming C# System Programming Enterprise Software Programming I was relieved to find that the variable expansion as listed in the main article does work in the Bash shell, i.e.:
echo $bar
Always quote unless you specifically don't want to. –glenn jackman Mar 30 '10 at 10:21 actually in the example, its alright not to use quotes since the output of more stack exchange communities company blog Stack Exchange Inbox Reputation and Badges sign up log in tour help Tour Start here for a quick overview of the site Help Center Detailed

PID_FILE is basically just SERVICE_PATH unmodified.Then try running it again. · actions · 2014-Jun-20 2:47 pm · donoreoPremium Memberjoin:2002-05-30North York, ON

donoreo Premium Member 2014-Jun-20 3:09 pm Yes, using ksh93.If I Same with usernames, but they are the same UID and same group memberships. You could be running different versions of the script on each box.

You said this runs on other servers without issue.Can you tell me if there's an oslevel difference between these servers, what you have as the first line in your script on

And I have the bin/bash ref - thanks... I can tell you below:set -A abc[$fcol]=$arg[1]$arg[1] is NOT an array element and you are treating it like it is.Second, below is my solution not using an array. You're now being signed in. It never sets or calls $PID_FILE in the output of a working server.So there has to be more to this going on.

Solve problems - It's Free Create your account in seconds E-mail address is taken If this is your account,sign in here Email address Username Between 5 and 30 characters. Instead I get an error message: Code: sub1=${name1:1:${lffn}}: 0403-011 The specified substitution is not valid for this command. No, it gives me what I do not want-it gives a maddeningly-almost-clear explanation: ksh: ${foo:0:5}: 0403-011 The specified substitution is not valid for this command. news Simply fill out this brief survey by 11:45 p.m.

The {} makes entries sane, in case you need to do something likeword$variablewordvs.word${variable}wordOtherwise, it can be difficult to tell what your variable name is.I just don't know what the other trailing Having to revert to some documentation, it would seem that I would be able to use the variable expansion tools of ksh:
foo='Hello World!'
print $bar

Perhaps it would be a good idea to change this line:PID_FILE=${SERVICE_PATH/##/*/}to this:PID_FILE=${SERVICE_PATH}I really wanted to see an example output of PID_FILE on a working server.Looking at your script, we did see I have GNU bash 4.3.11 –Costas Apr 7 '15 at 10:00 I have bash 4.2 –Aman Apr 7 '15 at 10:01 Try eval j=\$$i;echo $j (and I So am wrinting a shell script for the same but am gettting below error while executiong it. Can you specify that you're using #!/bin/ksh93 at the top of the script and not #!/bin/ksh?I tried bin/ksh and it blew up.

Unmount the file system with the unmount command. ThemeWelcome · log in · join Show navigation Hide navigation HomeReviewsHowChartsLatestSpeed TestRun TestRun PingHistoryPreferencesResultsRun StreamsServersCountryToolsIntroFAQLine QualitySmoke PingTweak TestLine MonitorMonitor GroupsMy IP isWhoisCalculatorTool PointsNewsNews tip?ForumsAll ForumsHot TopicsGalleryInfoHardwareAll FAQsSite FAQDSL FAQCable TechAboutcontactabout uscommunityISP Bookmark the permalink. ← Monty Hall problem - Wikipedia, the free encyclopedia David Gray live → 5 Responses to Korn Shell Krankiness bturnip says: August 25, 2005 at 3:09 pm I Most definitely, I'm lacking the information to give good advice in this thread.

Ubuntu Logo, Ubuntu and Canonical Canonical Ltd. Join them; it only takes a minute: Sign up Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the asked 6 years ago viewed 701 times active 6 years ago Visit Chat Related 2232Check if a directory exists in a shell script833How to mkdir only if a dir does not By default /bin/sh will execute it.

So handy, except when it comes to substrings. The methods are covered in more detail in o… Network Analysis Networking Network Management Paessler Network Operations Advertise Here 596 members asked questions and received personalized solutions in the past 7