10 More Discussions You Might Find Interesting
1. Homework & Coursework Questions
#! /bin/bash
# program to creat a backup copy for every deleted file or dierctores
mv -t /home/$USER/.local/share/Trash/files $1
rsync -a /home/$USER/.local/share/Trash/files /usr/share/trash
didn't work (2 Replies)
Discussion started by: rami-ali
2 Replies
2. UNIX for Dummies Questions & Answers
to kill a program in bash, for instance 'mousepad' I use
kill $(pidof mousepad);
or
pkill mousepad
But it only works if we use another bash window;
If it is started from the same bash, that does not work:
#mousepad;kill $(pidof mousepad);
In this case, it looks like mousepad hangs... (7 Replies)
Discussion started by: arpagon
7 Replies
3. Programming
Hello All,
I am trying to write a small bash script to make my life easier for an analysis. I have multiple folders and inside them are 10 output files with an extension .pdbqt What I am trying to do is to read the folder content and then make a PyMol (.pml) file to load the molecules and then... (11 Replies)
Discussion started by: biochemist
11 Replies
4. Programming
suppose i have a bash script:
#!/bin/bash
echo "hello"
echo "how are you"
echo "today"
how can i put the entire script above into a basic c program?
i do not want to translate the bash code to a c code. i want C to run the bash code. is this possible?
i found this on the... (15 Replies)
Discussion started by: SkySmart
15 Replies
5. Shell Programming and Scripting
HI
I am trying to create a bash script to print whatever i type in
It has to have these below to define the size of the label and what size to print the text
N
q609
A100,10,0,5,2,2,N," "
P1
It has to be sent to below
> /dev/usblp0
So what it has to be is
Written... (12 Replies)
Discussion started by: bganse
12 Replies
6. Shell Programming and Scripting
Hi,
This is my program.
#!/bin/bash
today=`date +"%b-%d-%Y"`
SERVICE="pbxconnect.php"
if ; then
echo "pbx program is running"
else
nohup php pbxconnect.php > logpbx-$today.txt &
fi
On executing using "sh myprogram.sh" , i get the following error.
myprogram.sh: line 4: '
My... (7 Replies)
Discussion started by: gskumar1234
7 Replies
7. Shell Programming and Scripting
Hello, i have a problem with the output from my bash program.
I made this program
#!/bin/bash
BESTANDEN=$* # Plaatst bestanden in de variabele BESTANDEN
TMPFILE=xmlprog.sh.$$.$RANDOM # basisnaam voor tijdelijke bestanden
# controller of het programma correct is aangeroepen
if
then
... (6 Replies)
Discussion started by: dutchspiders
6 Replies
8. Shell Programming and Scripting
Hello I have to do a program in Bash, need help because it does not go out for me and go enough time with this!!
Five directories(boards of directors) that more occupy, arranged according to size. To measure the size of every directory(board of directors) there must not be included the size... (1 Reply)
Discussion started by: danihj
1 Replies
9. Shell Programming and Scripting
Hi
I'm running a program many times with differents input.
I mean that i run my_prog with some parameters and i wait till the end, then i start again another simulations with some others differents parameters.
Is possible to make it automatic with a script bash.
Maybe i need some... (2 Replies)
Discussion started by: Dedalus
2 Replies
10. Shell Programming and Scripting
Hi, I'm a pretty big fan of BASH scripting. I've got a bunch I use for random things and lately a couple issues have been plaguing me.
Both are somewhat related, in that they deal with filenames with spaces and "escaped" characters and with launching a program with command line arguements... (5 Replies)
Discussion started by: TinCanFury
5 Replies