Hi
I'm quite new to php. basically I need to run a system command from a php script as a user. do I use http authentication or sudo or what? I'm not concerned about security.
thanks.
thanks guys thats awesome!
a couple of other things I'm trying to do if you have a moment:
print the username at the start of each block and the total of the first column. eg.
fred 16
8 ./bk118/bk118_1220/work/fred/maya/data
8 ./sf118/sf118_1325/work/fred/maya/data
barney 85888
85876...
Hi
I have a list like this:
8 ./bk118/bk118_1220/work/fred/maya/data
8 ./sf118/sf118_1325/work/fred/maya/data
85876 ./tn125/tn125_1010/work/barney/maya/data
8 ./tn125/tn125_1020/work/barney/maya/data
4 ./tn125/tn125_1040/work/barney/maya/data
37468 ./rt117/rt117_1090/work/wilma/maya/data
4...
I'm new to awk but I'm stuck!! I'm finding it real hard!
so this works fine on the command line:
awk 'BEGIN { RS = "__+" } /string/' /blah/blah/blah/blah/blah/myfile
but when I put it into a file like this:
#!/usr/bin/awk
BEGIN { RS = "__+" } /string/ "/blah/blah/blah/blah/blah/myfile"
I...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.