Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

script syntax ..

  • 18-09-2008 10: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