Without correct permissions for files created by CGI scripts, a script will fail. So, how to set permissions automatically (on the fly) when generating CGI files with new or unique names?
By the way, the cgi code is compiled/binary, so no mod_perl, etc.
Based on this code...
BEGIN {
str = "2+2"
split(str,arr,"")
print arr[1] arr[2] arr[3]
}
...how can one simply convert the string arr[2] to the + math operator so as to print 4?
Here's a quiz...
How to use smtp with gawk. What works on the bash command line is not working in an awk script. Consider the following code:
BEGIN {
RS = ORS = "\r\n"
to = "name@server.com"
from = "name2@server.com"
text = "testing1...testing2...testing3..."
subject = "testing...
I've got a gawk script that controls other gawk scripts, one of which displays overall progress on the command line. While a progress display is simple to implement given iterations within a given script, I wish to monitor the progress of the controlling script via process id and to add an...
Challenge: to convert what works on the command line into an executable script, putting each string within a file into an array, the file delimeter being empty space of any length.
This works on the command line:
gawk '/searchstring/ {split($0, arr, " "); for (i = 1; i <= NF; i++) { if...
Perhaps awk is not the best language for a long bash/sql interaction like that in quotes here:
command = "sqlite3 filename.sql <<SQL_ENTRY
... several lines of SQL ...
SQL_ENTRY"
Any ideas on how to make a command of many lines appear as one string (or how to better...
A challenge in converting a working bash script into a gawk script is hung up on passing variables for shell interaction. For example, the following is to run within an executable script, ie:
#!/usr/bin/gawk -f
BEGIN {
...
awkvar = 5
awkname = "name"
field = 2
command1 = (./script2.awk...
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.