note 126011 added to ref.exec
| From: | ybhask at gmail dot com | Date: | Thu, 15 Apr 2021 13:26:03 +0000 |
| Subject: | note 126011 added to ref.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-216285@lists.php.net to get a copy of this message | ||
Using Linux Ubuntu 16.04 apache2 php 7 on Lenovo laptop 32 bit.
Exec command worked only after I closed terminal.
I have tried the following command:
$output = exec( "php script.php | awk -F= '{printf \"%d %s\n\", length($1),
$0}' glossary2.snpz | sort -rn -k1,1 | sed -E -e 's/^[0-9]+ // ' " ) ;
echo $output;
I hope it will be useful to others.
Context: I have used the output as a string for my php script to design a Translation Script from
English to Telugu.
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 117.249.172.43)
----
Manual Page -- https://php.net/manual/en/ref.exec.php
Edit -- https://main.php.net/note/edit/126011
Del: integrated -- https://main.php.net/note/delete/126011/integrated
Del: useless -- https://main.php.net/note/delete/126011/useless
Del: bad code -- https://main.php.net/note/delete/126011/bad+code
Del: spam -- https://main.php.net/note/delete/126011/spam
Del: non-english -- https://main.php.net/note/delete/126011/non-english
Del: in docs -- https://main.php.net/note/delete/126011/in+docs
Del: other reasons-- https://main.php.net/note/delete/126011
Reject -- https://main.php.net/note/reject/126011
Search -- https://main.php.net/manage/user-notes.php