The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
62 views

Prompt for confirmation for every command

I'm writing a pretty ad-hoc install script for some thing. No much control constructs, basically just a list of commands. I'd like the user to confirm each command before it gets executed. Is there a ...
0
votes
0answers
47 views

Alternatives to Flash for creating Flash-content under Linux?

Are there any programs similar to Flash that would allow me to make Flash-content (e.g. an interactive Flash-button or a Flash-presentation) under Linux? Yes I know Flash is a proprietary format. ...
1
vote
2answers
68 views

Invoke a command/script disconnected from the controlling terminal?

I'm investigating the behaviour of a script that is normally run as an automated process (e.g. cron, Jenkins). The script can (eventually) invoke commands that behave differently (seeking user input) ...
3
votes
1answer
126 views

On OS X, how do I log in interactively as root starting from my normal user account?

I have been doing this for a while: sudo su - but it uses 'sh' rather than 'bash', which is what I'd like to do. Which command will log me in as root and get me a bash shell even if that's not the ...
75
votes
13answers
9k views

How to do integer & float calculations, in bash or other languages?

Using echo "20+5" literally produces 20+5 What command can I use to get the actual sum, e.g. 25 in this case. Also, what's the easiest way to do it just using bash for floating point, e.g. echo ...
3
votes
1answer
145 views

Supress startup messages on stdout?

I'm using tcsh, and have to source a group .cshrc file. This file echoes some messages, which is fine for normal shells, but causes problems with programs like scp and rsync. I can see the solution ...
5
votes
4answers
2k views

Run script in a non interactive shell?

I have a cron job that is running a script. When I run the script via an interactive shell (ssh'ed to bash) it works fine. When the script runs by itself via cron it fails. My guess is that it is ...
3
votes
2answers
533 views

How to do a text replacement in a big folder hierarchy?

I want to search and replace some text in a large set of files excluding some instances. For each line, I want a prompt asking me if I need to replace that line or not. Something similar to vim's ...