Hi i am using a shell script for renaming the files and placing in the remote location(FTP) my code is:
cd $1
day=$(date +%d)
for i in `ls -1 BBW*`
do
last=`tail -1 $i`
pat=`expr "$last" : '.*(\(.*\)).*'`
pat=`echo $pat | sed 's/ /_/'`
pat=$pat$day
mv $i $pat
rm -f $day
done... (3 Replies)
Hi,
I have tried with the following code;
if ;then
echo "Failure."
else
echo "Success."
fi
to test the exit status of the test.ksh shell script. But whatever is the exit status of the test.ksh shell script Failure. is always printed.
Please help.
regards,
Dipankar. (2 Replies)
Hi, I am new in scripting and also in Linux. I wrote my first script recently. I have an external hdd connected to my debian machine. I am spinning it down using a spindown code (code.google.com/p/spindown/)when I am not using it ( automatically after 1 hour). The problem was I wanted to know when... (2 Replies)
All,
I'm new to shell script. How do I check the password
1)password should have atleast one alpha character and one non-alpha character (0-9 Special)
2)password should not contain three or more repeated alpha numeric characters in a row
Can somebody help me in creating the regular... (1 Reply)
How can I tell, in a shell script, if a certain service is running? I know how to do this on the command line, but not in a script. Is an error thrown somehow that I can check?
Thanks. (6 Replies)
Hi,
I want my script to check for availability of few files contineously for some time.
Lets say from 10:00 AM to 10:30 AM script should keep checking on a particular location for each file one by one. If all the files are available then only it should complete the next processing part, else... (2 Replies)
Hi,
I want to write a script which continuously checking status of a script running in background by nohup command. And if same script is not running then immediately start the script...please help..
i am using below command to run script
nohup system_traps.sh &
but in some... (9 Replies)
I want to check the postgres service for client PC which is remotely placed through shell script , whether the Postgres service is working or not.I don't have an idea to develop this script.Please give me a code.
Client PC IP Address:
10.66.1.133 (2 Replies)
Hi, i am new in shell script. i have given a task to make a C-shell script. I have list of ip address and device name respectively. For example;
cal 1 : 100.21.25.10
cal 2 : 100.21.25.11
cal 3 : 100.21.25.12
cal 4 : 100.21.25.14
and so on...
Right now, i have this.
#! /bin/csh -f
... (0 Replies)
Hello Folks,
Looking for a script which can keep doing ls to the directories and once file landed to the directory then ,read the files do further calculation and exit.
Kindly guide.
Regards,
Sadique (3 Replies)
Discussion started by: sadique.manzar
3 Replies
LEARN ABOUT DEBIAN
ibid-db
IBID-DB(1) Ibid - Multi-protocol Bot IBID-DB(1)NAME
ibid-db - Database management utility for Ibid
SYNOPSIS
ibid-db command [options...]
DESCRIPTION
This utility is for offline management of your Ibid bot's database. Used for import, export, and upgrades.
The export format is DBMS-agnostic and can be used to migrate between different databases.
COMMANDS -e FILE, --export=FILE
Export DB contents to FILE. Export format is JSON.
FILE can be - for stdin/stdout or can end in .gz for automatic gzip compression.
-i FILE, --import=FILE
Import DB contents from FILE as exported by this utility.
FILE can be - for stdin/stdout or can end in .gz for automatic gzip compression.
Note: The DB must be empty first.
-u, --upgrade
Upgrade DB schema to the latest version. You need to run this after upgrading your bot.
Note: You should backup first.
OPTIONS --version
Show the program's version and exit.
-h, --help
Show a help message and exit.
-v, --verbose
Turn on debugging output to stderr.
FILES
ibid.ini
Locates the database to act upon by looking for the [databases].ibid value in the bot configuration file in the current directory.
SEE ALSO ibid(1), ibid.ini(5), ibid-setup(1), http://ibid.omnia.za.net/
Ibid 0.1 March 2010 IBID-DB(1)