script

  1. D

    Can't Figure out how to Script to run at Reboot on Ubuntu 20.04

    Hi I'm working on a Panasonic Toughbook CF-31S MK3 and am working to get the Touchscreen to Calibrate automatically on startup. I have a script that works when run by itself, however I need to be able to have it run automatically on reboot/startup so that I don't have to manually run the script...
  2. M

    Shell script linux

    I am really struggling with a homework.I have to make a shell script that will copy to a separate path the files in which the user modified more than 20 lines on a specific date.The files should also be archived and them deleted. What I know right now: To copy a file somewhere else i use this: $...
  3. R

    Convert Old script file to systemctl

    I want to convert this old script file to .service file which is used by systemctl. I have converted as much as I know, but I am getting error code 1 whenever I try to start the service. #! /bin/sh ### BEGIN INIT INFO # Provides: daemonsync # Required-Start: $remote_fs $syslog #...
  4. Nemesis

    Cron runs a non-existing variant of . sh script

    I've been encountered a strange phenomena. I've been messing with Cron, so it runs a script called startup.sh, which it does. First I wrote the script to send an email, but later I rewrote it to send a message instead. However, when restarting the server, nothing happened. Then I checked the...
  5. E

    INTO OUTFILE ERROR 2

    Good day, I am trying to run the following command but it does not seem to work. [[email protected] ]# mysql -pPassword asteriskcdrdb -s -b -e "select 'Account ID','Destination','Operator','Provider','Date','BillSec','Rate id','Cost' UNION select...
  6. G

    File Permission of The Sh Files

    I have a Directory where a lot of bash script or sh file exist. I want to change their permission to the 770 with the chmod command. How can i accomplish that? Thanks.
  7. G

    Bash User Input

    I am writing a script which requires user input. How can I prompt for user input to use in my bash script.Thanks for your offer to help. I'm very grateful.
  8. D

    Mapping network drives in Ubuntu from Windows domain (script)

    Goodnight, First of all, inform you that I am the most novice level that there is in Linux, I am starting in this world, and I am trying to perform a task. After getting to put a Linux machine in a domain with Active Directory in Windows, I get to map the network units manually, however, my...
  9. N

    Automate scripts

    Hi i have a Ethereum node running and mining on a terminal in linux. i want to create a script that will start up the node.sh roughly 2 minutes after startup. my scripts is in the home/chainskills/private/startnode.sh. i want this to be executed after startup. I have barely any knowledge of...
  10. 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...
  11. iridakos

    Creating a bash completion script

    Hello everybody, I just published a tutorial for creating bash completion scripts. Link: https://iridakos.com/tutorials/2018/03/01/bash-programmable-completion-tutorial Thanks, Lazarus
Top