The term 'shell' refers to a general class of text-based command interpreters most often associated with the Unix & Linux operating systems.
1
vote
1answer
9 views
Shell Script. Finish mysql dump before continuing script
So I am trying to make a basic database backup script. It uses mysqldump and puts the data in a .sql file, which is then uploaded to dropbox.
My question is, how can I make sure the dump is finished ...
0
votes
0answers
11 views
Is tty.js touch screen support possible?
Is there any way to get tty.js to work for touch screen devices (I have an iPad)? Is there an alternative that will work?
0
votes
1answer
11 views
Symlinking files with specific extension into another folder in linux
I currently have a number of drives mounted under "/media/" I want to recursively scan all the drives mounted looking for files with a specific extension "*.foo". Once found I want to symlink these ...
2
votes
1answer
12 views
How to run a mysqlcheck through c#
I'm currently trying to do a basic mysqlcheck through the command prompt. The mysql.exe file itself is within a bin that the working directory is pointing towards to use as part of the commands though ...
2
votes
2answers
25 views
Overwriting a single line in original file in shell
I have a file like this-
Asia
Europe
Africa
I want to search for word Europe and insert '#' in front of it which should appear like this-
Asia
#Europe
Africa
I tried:
sed -e ...
0
votes
1answer
26 views
creating a script which finds two alternating patterns
So my issue is that I need to make a script which finds a pattern where Time to live and User-Agent occur in that order and I increment a count (or grab what data I want, etc; it will likely evolve ...
0
votes
0answers
20 views
Building a build.xml for a shell script [duplicate]
I have a simple shell script. I want to run it by building an ant build say build.xml. how can i achieve this in linux ?
0
votes
1answer
19 views
Script works fine in adb but not in Android code
In my code, I am trying to capture a snapshot of my android screen. And I am using a shell script for the same.
proc = runtime.exec("su");
OutputStream os = proc.getOutputStream();
...
0
votes
2answers
33 views
What happens if two command line programs share the same name? [on hold]
I've always wondered this, and haven't managed to find a good answer anywhere – what happens if two command line programs aren't namespaced properly and share the same name? How would you call one or ...
0
votes
0answers
22 views
How should i arrange my backups in linux for diff and patching
I want to have one weekly full backups and then daily hourly incremental backups
I am storing daily by date folder and then backup in there
i can store weekly backups in weekly folder with date ...
0
votes
2answers
16 views
Terminal input does not start new line
I have a random problem which I personally find quite irritating. I use the terminal alot and have installed a theme and even toyed around with what is displayed on the prompt. However if I write a ...
2
votes
2answers
46 views
How to detect when user press ESC and do something in shell script
I want to create a poll in a shell script:
echo "1 - What is your name?"
read name
echo "your name is $name"
echo "2 - What is your country?"
read country
echo "your country is $country"
...
...
1
vote
1answer
19 views
Fix Kate text editor line limit via bash script
The Kate text editor has a default line length of 1024 chars. I need to change this. And I need to change it via a bash script (it's for automated installs).
Here's some background: ...
0
votes
0answers
12 views
Changes to /etc/security/limits.conf are automatically rolled back after few seconds [migrated]
I need to set soft and hard file descriptors limits for a user in /etc/security/limits.conf.
webuser soft nofile 65536
webuser hard nofile 131072
I am able to save the changes in limits.conf but, ...
3
votes
1answer
60 views
Echoing variable properly within Bash script
Per the following, I'm trying to obfuscate a password within a script
Hide/encrypt password in bash file to stop accidentally seeing it
However, because this password has non-alpha numeric ...