Posts

Showing posts from February 21, 2019

Soup

Image
For other uses, see Soup (disambiguation). Soup A Hungarian goulash soup Type Soup Main ingredients Liquid (stock, juice, water), meat or vegetables or other ingredients Variations Clear soup, thick soup Cookbook: Soup   Media: Soup Soup is a primarily liquid food, generally served warm or hot (but may be cool or cold), that is made by combining ingredients of meat or vegetables with stock, or water. Hot soups are additionally characterized by boiling solid ingredients in liquids in a pot until the flavors are extracted, forming a broth. In traditional French cuisine, soups are classified into two main groups: clear soups and thick soups . The established French classifications of clear soups are bouillon and consommé . Thick soups are classified depending upon the type of thickening agent used: purées are vegetable soups thickened with starch; bisques are made from puréed shellfish or vegetables thickened with cream ; cream soups may be thickened with b...

Can you execute a Bash function with the `at` command?

Image
Clash Royale CLAN TAG #URR8PPP 5 I want to execute a Bash function at a scheduled time. I think the right tool for this is the at command. However, it doesn't seem to be working. function stupid () date export -f stupid cat << EOM | at now + 1 minute stupid EOM After waiting the minute, I check my mail and this is the error I see: sh: line 41: syntax error near unexpected token `=() date" "' sh: line 41: `"}; export BASH_FUNC_stupid()' I don't understand what's going wrong here, especially since I know the function works. $ stupid Fri May 29 21:05:38 UTC 2015 Looking at the error, I think the incorrect shell is being used to execute the function ( sh as opposed to bash ), but if I check $SHELL I see it points to /bin/bash , and the man page for at says: $ echo $SHELL /bin/bash $ man at ... SHELL The value of the SHELL environment variable at the time of at invocation will determine which shell is used to execute the at jo...