1
vote
2answers
72 views

append & to the end of the particular command which I execute

I wish to append & sign to the end of particular command (say tkdiff) whenenver I execute the command. Please let me know what kind of alias / any other solution should I create in bashrc. ...
1
vote
4answers
727 views

How to check / start a process | error in shell script

If want to check if a process is running and start it if not. My script below is buggy and always says that a process is running. What is wrong? $ ./check_n_run thisisnotrunning ./check_n_run: ...
2
votes
2answers
1k views

difference between braces and normal brackets in bash?

what is the difference between braces and normal brackets in bash? FYI... I did not get it in the related questions list and also not able to locate it in questions search. Please point me to the ...
2
votes
9answers
6k views

sh scripting: how to mount a remote filesystem if it is not mounted?

In a bourne shell script (#!/bin/sh) how can check to see if a remote NFS share is mounted and, if it is not, mount it? I've got an ugly set of cat, greps and ifs using the output of 'mount' at the ...