My first tip is that if you are going to ask questions about code, you really ought to post the code in question. We are very bad mind-readers.
My second tip is that if you are posting code, please use [ c o d e ] tags so that we can actually read it with reasonable formatting (see blow).
Let us suppose, just for giggles, that your code looks something like this.
Code:
os-command sed -i'.bak' 's/\o14//g' filename.
I'm guessing that you might be debugging that with something like:
Code:
os-command sed -i'.bak' 's/\o14//g' filename ; sleep 60.
Which results in:
Code:
[tom @ protopdev ~] $ ps -ef | grep sleep
tom 28699 25217 0 14:43 pts/6 00:00:00 /bin/bash -c sed -i'.bak' s/o14//g filename ; sleep 60
tom 28701 28699 0 14:43 pts/6 00:00:00 sleep 60
Note that the "\" character has disappeared. That is because it is an "escape" character in 4gl strings. You need to code that as "~\" resulting in a test command like this:
Code:
os-command sed -i'.bak' 's/~\o14//g' filename ; sleep 60.
Which gives better output:
Code:
[tom @ protopdev ~] $ ps -ef | grep sleep
tom 30064 25217 0 14:49 pts/6 00:00:00 /bin/bash -c sed -i'.bak' s/\o14//g filename ; sleep 60
tom 30066 30064 0 14:49 pts/6 00:00:00 sleep 60
Looking at that I am kind of wondering if you are trying to search for an ocatl 014, aka form-feed, rather than \o14 (whatever that is)
Still missing your second set of single quotes although I also can't see what you would need them for.
None the less, keeping after the goal, the 4gl supports the use of either single or double quotes to build strings. Which is really handy when you want to embed one type of quote into a string. So:
Code:
os-command "sed -i'.bak' 's/~\o14//g' filename ; sleep 60".
Finally, this looks like what you are aiming for:
Code:
$ ps -ef | grep sed
tom 348 25217 0 15:00 pts/6 00:00:00 /bin/bash -c sed -i'.bak' 's/\o14//g' filename ; sleep 60
tom 352 27473 0 15:00 pts/7 00:00:00 grep --color=auto sed