Search Results

Search: Posts Made By: extra93
1,472
Posted By Aia
A possibility for general purposes: perl -nle...
A possibility for general purposes:
perl -nle '/(\d+:\d+:\d+)/ and print $1' extra93.file
00:12:25

Or if it needs to be specific to the usercol3 class
perl -nle '/usercol3">(\d+:\d+:\d+)/ and...
1,472
Posted By MadeInGermany
Pipe it to sed -n...
Pipe it to
sed -n 's#^.*data-sort-value="\([^"]*\)".*$#\1#p'If you have the string in a shell variable, then
echo "$string" | sed ...can be smart-replaced with
expr x"$string" :...
1,472
Posted By Corona688
How big is this problem? Do you have this...
How big is this problem?

Do you have this one exact line to deal with and nothing else, or a load of other XML to manage i.e. picking it specifically out of a file etc?
1,292
Posted By Scrutinizer
Not even with --posix . It is not part of the...
Not even with --posix . It is not part of the POSIX specification.

Even so, most shells do support string comparison when the > or < is escaped, through their shell builtin
[ "$string1" \>...
1,292
Posted By MadeInGermany
Correct is if [ $linenum -gt 0 ]The > 0 is a...
Correct is
if [ $linenum -gt 0 ]The > 0 is a redirection to a file "0"! Bash handles it differently unless called with --posix.
3,011
Posted By stomp
There's a manual page for that file... man...
There's a manual page for that file...

man at.deny
3,011
Posted By stomp
Obviously something is wrong.... You can...
Obviously something is wrong....

You can check file permissions. Maybe your script has no access to /tmp. Please post the output of the following commands:


ls -ld /
ls -la /tmp
Maybe you...
3,011
Posted By Corona688
Please answer my question.
Please answer my question.
3,011
Posted By Corona688
By "from PHP" you really mean "when run by the...
By "from PHP" you really mean "when run by the web server through CGI", yes?

Your web server will likely be running it as the apache user and group, which may not be in at.allow, and may not have...
3,011
Posted By stomp
What's in the log.txt when you execute this? ...
What's in the log.txt when you execute this?

shell_exec('at -f phpsc.sh now + 5 minute >/tmp/log.txt 2>&1');

...and i think correctly it is called +5 minutes (s at the end).
Showing results 1 to 10 of 10

 
All times are GMT -4. The time now is 05:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy