• Rob's side project: I recently started Gun-Forums.com and we currently have a $100 raffle - if you're into guns, join up and enter the raffle to win $100.00. Raffle Link

scripting

  1. Nemesis

    execute commands from .sh script don't work, wrong "space-signs"?

    hi all! I've been trying to get a .sh script to work the past days but I'm obviously not smart enough to grasp the concept, because it doesn't work. the script is suppose to send a message via messenger, and the program messer the "solution" but something isn't right, because it says Logging...
  2. J

    How to Execute After Read?

    In zsh, If i press enter before the read is finished, then the last echo command gets executed. Great! read -t 10 && echo 'bye' But, if i DON'T press enter, then the final echo does NOT get executed. How can i ensure the final echo gets executed if i allow the read to finish? thx
  3. J

    Clear steps to make an .sh file executable

    I've spent a half hour Googling about making an .sh executable but not found anything that works in my system. I'm trying to install/run/make executable the script at this link for saving/restoring desktop icon positions: http://www.chateaumezcal.com/software/desktop_maven.htm I'm to the part...
  4. N

    run script to collect information every day but different directory

    Dear Any One, Please kindly help me to find out some way to collect information as below? zgrep "MCPKG" /centralizedlog/dsd0110{1,4}/afcdr/20190527/*.gz |grep success > save20190527.txt I would like to run this command to collect information and put it to output file as this example I can use...
  5. iridakos

    Remove duplicate lines from files keeping the original order (one-liner explained)

    Hi all, I published a post providing ways for removing duplicate lines from text files keeping the original order and a thorough explanation of how the awk one-liner works. https://iridakos.com/how-to/2019/05/16/remove-duplicate-lines-preserving-order-linux.html Hope you find it useful
  6. D

    Looking to start a script in Ubuntu everytime a user logs in

    Hello, I've tried searching for this issue, but I cannot seem to get it right. I am using Ubuntu 14.04 right now, I wrote a script to restart a program/process. It's a .sh script. I was wondering if it was possible to get it to run automatically when a user logs into the system. I've tried to...
  7. A

    Looking For Lightweight Distro

    I am looking for a lightweight distro that I can use on a thin client right now and later replace with a raspberry pi. I need the thin client/raspberry pi to stream a video to and from a monitor attached to it and display a page with upcoming scheduled visits. I need it to be lightweight...
  8. M

    Strange /etc/ppp/auth-up script work

    Hello everybody! Sorry for not perfect English. Need help, I try to execute this script in /etc/ppp/auth-up: It this file, $1 is interface name like ppp0, ppp1 etc $2 is peer name (defined in /ppp/chap-secrets) #Script start !#/bin/sh if [ "$2" == "someusername" ]; then echo...
Top