-
I use wyre bash for Skyrim and Fallout 4. When bash checks the mods I sometimes have problems with esp's having a UDR2 all the way to 6, problem. What am I supposed to do?
-
Change router name and IP address using bash script
Would I be able to change the name and IP address of my router by using bash script? I don't want to use the webUI. Can I do that? Thank you.
-
How to list Java processes using Bash
Is there a way I could list all of my Java processes in Bash? I have to use a command line / I have a command "PS" but I'm not sure of the parameters. Can anyone help me?
Last updated: -
Not getting any ouput when running Linux bash script
My friend and I are working on a scripting project that involves Bash. Here's what our script looks like: #!/bin/bash VAR1="$1" VAR2="$2" MOREF='sudo run command against $VAR1 | grep name | cut -c7-' echo $MOREF But when we run the script from the command line and pass it through the arguments,...
Last updated: -
How to go back to a previous directory in Bash
Would there be a way to actually go back to a previous directory that we were using in Bash, without using pushd/popd? We're hoping for something like "back" so it returns us back to the directory that we were previously in.
Last updated: -
Linux: Redirecting output to a file
I understand in Linux that to redirect the output from a screen to one of my files, I can use either the > or tee. But I can't figure out why the output is actually still the output to the screen (and now written to the file). Would there be a way to redirect the output just to the file?
-
Bash: How to redirect output to a file and stdout
I'm currently using Bash and I already know that calling foo displays any output from that command on the stdout. Also, I know that foo > output redirects any output to the file specified. But here's my question: Would there be a way to redirect the output to a file and have it displayed on...
Last updated: -
Finding a Bash script that replaces spaces with file names
Would anybody be able to recommend a safe solution that replaces spaces with underscores in fire and directory names that start from a given root directory? Here's what I have so far: $ tree . |-- a dir | `-- file with spaces.txt `-- b dir |-- another file with spaces.txt `-- yet another file with...
-
Bash: How to avoid the split on spaces
In Bash, I'm trying to iterate over a list of files. I know the list is the result of a "find" command, so I came up with this: getlist() { for f in $(find . -iname "foo*") do echo "File found: $f" # do something useful done } It works fine until a file has spaces in its name. $ ls foo_bar_baz.txt...
-
Determine the script file name in a Bash script
Would there be a way to determine name of a Bash script that's actually inside the script itself. Here's an example: If my script is in the file "runme.sh", then how would I make it display as "You are running runme.sh" message (without any hardcoding)?
-
Write bash script to change current directory to project directory in Linux
My partner and I have been trying to write a small script that would change the current directory to my project directory. Here's what we have so far: #!/bin/bash cd /home/tree/projects/java We saved the file as proj, changed it to CHMOD, copied it /USR/BIN but when I try to call it by PROJ,...
-
Is there a bash script that would kill a child process after a given time?
We have a bash script that would launch a child process that crashes every once in a while and for no apparent reason too. Because of this, we are trying to launch this process for a certain amount of time and then kill it if it doesn't return successfully. Is there a simple way to do this using...
-
Linux: Normalize a file path in Bash
In Linux, I'm trying to transform /foo/bar/.. to /foo. Does someone know if there's a bash command that does this? Thank you.
Last updated: -
SSH Key Authentication Generator
Script Name: SSH Key Authentication Generator Language: Bash Purpose: Automate generation of SSH key files (id_rsa & id_rsa.pub for example), for use with passwordless SSH authentication. Notes: This is a modified version of a script I have on my blog,...
Last updated: -
Auto Load USB Printer Firmware When Printer Turned On – Linux
I am using a derivative of Puppy Linux. I compiled the driver for the HP Laserjet 1020 printer. For the printer to work the firmware has to be loaded every time the printer is turned on. I have added the following command to the rc.local file in Puppy Linux which runs every time Puppy Linux boots...
Last updated: -
# I want to be able to extract all the oracleprod processes which are 3 days old and kill them. Are there other date functions or methods can I use? I can make a list of processes but how do I compare the date to kill those processes more than 3 days old. This problem is occurring even though I...
Last updated: -
BASH: matching a directory in the middle of a path
How can I do this in bash? find . -name '*\!{*}*' -ls Cf. UNIX Power Tools, page 175. This works in tcsh, but no in bash. In bash I get this message: ff CH18 find: paths must precede expression Usage: find [-H] [-L] [-P] [expression]
Last updated: -
A Linux question: Can you restrict a certain command to a specific time range. I don't want to be able to run command x between 7 and 8 ? Any assistance would be appreciated. Regards
Last updated: -
Obtaining an elapsed-time sorted list of Unix processes from a shell
I would like to obtain a sorted list of processes, sorted by elapsed time. I am aware of ps -o etime etc, but how exactly do i sort by a field with format [[dd]:[hh]]mm:ss ? Or is there a different way altogether to ask the OS to return a sorted list of processes, sorted by elapsed time? Thanks.
-
How to modify external environment variable from 2nd shell script
There are two shell scripts. First one creates variable as: "export VAR1=init_value;" OR "declare -x; VAR1=init_value;" Second script can read this variable and modifies the variable's value but after exiting the variable still keep original value. What is wrong?
Last updated: