fork download
  1. #!/usr/bin/perl
  2.  
  3. clear
  4. printf "This is information provided by mysystem.sh. Program starts now.\n";
  5.  
  6. printf "Hello, $USER.\n\n"
  7.  
  8. printf "Today's date is `date`, this is week `date +"%V"`.\n\n";
  9.  
  10. printf "These users are currently connected:\n";
  11. w | cut -d " " -f 1 - | grep -v USER | sort -u
  12. printf "\n"
  13.  
  14. printf "This is `uname -s` running on a `uname -m` processor.\n\n";
  15.  
  16. printf "This is the uptime information:\n";
  17. uptime
  18. printf "\n";
  19.  
  20. printf "That's all folks!\n";
Runtime error #stdin #stdout 0s 4596KB
stdin
Standard input is empty
stdout
Standard output is empty