I'm using the linux 'script' command http://www.linuxcommand.org/man_pages/script1.html to log all input and output in an interactive bash script.
At the moment I have to call the script command, then run my bash script, then exit.
I want to run the script and exit commands from within the actual bash script itself.
Some background:
I am new to scripting and wrote a simple Bash script in Windows using Notepad++.
cxStopAllServicesOnSERVER.sh
#usr/bin/bash
cd "/some/path"
echo "Hi.
Im new to bash and have written this script to collect data then save it to an automated file it runs fine till here but as i try to rerun the script to add another details it gives me errors.
please cam you help
!/bin/bash
This program helps the user to collect contact details.
clear
options="Add_User End_session"
echo "1. Add another user"
echo "2.
Greetings all,
I'm sure this will be simple to those of you who find Bash scripting easy. I've been searching for quite some time on this matter and have come up empty. Here's what I'd like to do...
I have an encrypted file with numerous accounts listed. It's a simple text file encrypted with gpg.
I'm new to bash and have written this script to collect data then save it to an automated file. It runs fine til here but as I try to rerun the script to add another details it gives me errors.
#!/bin/bash
#This program helps the user to collect contact details.
clear
options="Add_User End_session"
echo "1. Add another user"
echo "2.
I have this bash script
#!/bin/bash
cat $@ | while read line
do
for word in $line
do
echo $word | circling-the-square
# here's where i need to add the if statement:
#if the word contains one of the four [!?.,],
#then also echo that punctuation mark
done
done
circling-the-square is a Python script based on Norvig's spelling corrector.
That script rids
I am new to bash script and want to create bash script that moves some days old files between source and destination as per days defined in script.
#!/bin/bash
echo "Enter Your Source Directory"
read soure
echo "Enter Your Destination Directory"
read destination
echo "Enter Days"
read days
find $soure -mtime -$days -exec mv {} $destination \;
echo "Files which were $days Days old moved from
Hey guys,
I want to paste a code in a .php file via a bash script.
Dear Sir,
May I know how do I go about adding the following feature into the script below:
When user enter values other than 1,2,3,4,
a) Message “Wrong entry !!!