Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

script syntax ..

  • 18-09-2008 09:21AM
    #1
    Closed Accounts Posts: 1,788 ✭✭✭


        mail -s "[\\\\trpa17\\Scanned Letters\\$1\\$2]" sorting7 < input.empty
        date '+%F %T',"\\\\trpa17\\Scanned Letters\\$1\\$2"  >> /home/sorting_ext/SORTING_EXT_FILE_SFR.csv
    fi
    


    what does this do ?

    from what i can see sends a mail with the subject a path, + 2 args..
    but it's the 2nd line and 3rd line im unsure of..


Comments

  • Closed Accounts Posts: 7,562 ✭✭✭leeroybrown


    The first line sends an e-mail with the text from input.empty (presumably nothing) and a path in the subject to the local address or alias 'sorting7'. The second line appends the date and time and path as a new line at the end of a comma seperated file. The third line is the closing part of an 'if' statement so you should find a corresponding 'if' line somewhere above.

    The only bit that is really script syntax is the 'fi'. The other two are just standard shell commands with redirects for file operations.


Advertisement
Advertisement