Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations dencom on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: codemut
  • Content: Threads
  • Order by date
  1. codemut

    cgi permissions

    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.
  2. codemut

    string to literal conversion

    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?
  3. codemut

    gawk smtp

    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...
  4. codemut

    script path

    How should a script in another directory be run, such as /another/directory/script ? My shell is bash.
  5. codemut

    process monitor

    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...
  6. codemut

    executable script

    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...
  7. codemut

    common pipe for multiple programs

    How might the following bash code be modified to suppress tee's output to terminal? ./prog1 | tee >(./prog2 > file1) >(./prog3 > file2)
  8. codemut

    long shell commands

    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...
  9. codemut

    shell interaction

    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...

Part and Inventory Search

Back
Top