Trying to understand your script I figure that you iterate through the pass_file line by line, read user and pass from it and run "mysql" in background with these two parameters, limiting the number of concurrent background processes. Some questions:
- do you really need to evaluate the file size in every loop? Does it change?
- do you really need to check $ip existence in every loop (even more as you check $1 in the second line and exit if NULL)
- do you really want to skip the actual user/pass if the process count is greater than your limit (and just sleep 15)?
Consider changing your script to sth like (untested, just for pointing you in some direction):
Hi All,
I have been fighting with a syntax error for the last 2 days, still haven't got the solution. Could you please help me, your help will be greatly appreciated.
In my script I am getting a error in a for loop, its similar to the one as is below.
for v_id in v1 v2 v3 v4
do... (8 Replies)
I get this error when I try to run my script
(BTW, this is a simple script I am supposed to write for my class)
$ menuscript
menuscript: syntax error at line 89 : `"' unmatched
$
Here is the code (Any help is greatly appreciated)
(Line numbers included)
1 #!/bin/ksh
2 ... (2 Replies)
Hello all, I am trying to write a little script to create a file and I keep getting the below error and cant see where my syntax mistake(s) is. please help...
the script:
FILE="/u/e477059/Unix_Machines/LISTS"
for X in `cat ${FILE}/list`
do
ssh $X "echo $X;
cd /var/tmp;
... (2 Replies)
Hi
I not sure what is wrong with my script... when I try to run it I get the follow error: "remove: syntax error at line 77: `end of file' unexpected" Thanks in advance for any help.
ans=y
while
do
while :
do
echo "Please enter a name that you... (3 Replies)
Hey guys keep having problems with the below script syntax error near unpexpected token '0' exit 0 I have two directorys backups and Usr in the usr i have sub dir's wp,ss,pic which i would like to back up (copy those directorys to the backups directory) with user acknowledgement from command line.... (2 Replies)
I am have FTP syntax like below in my bash shell script
ftp -n <<END
open $Server
user $FtpUser $FtpPwd
cd $FtpPath
binary
put $Filename.gz
bye
END
Now I wanted to change this into SFTP. I tried... (4 Replies)
hello everyone
i am beginner on shell scripting .and i am working on my project work on ad hoc network
i wrote a batch (.sh) to do a looping and execute a tcl script i wrote before in each iteration ..but i got this problem "
syntax error near unexpected token `('... (1 Reply)
Hi guys i'd like to show you this code of my script, where i couldn't find this error
" #! /bin/bash
#copiabin.sh: copia todos los archivos ejecutables a bin
if
then
mkdir $HOME/bin
fi
# copia de archivos y contador N
N=0
for ARCH in *
do
if # Si el archivo es... (9 Replies)
I added some fields to some existing code, and all was well. Just added a few more, and BAM. I've looked this over forever, but being a newbie to Python, I see NOTHING. The code generates syslog messages, and the new fields were added around "rtp_lapse*" . Any clues???
#!/usr/bin/python
... (4 Replies)
Discussion started by: gmark99
4 Replies
LEARN ABOUT DEBIAN
bp_generate_histogram
BP_GENERATE_HISTOGRAM(1p) User Contributed Perl Documentation BP_GENERATE_HISTOGRAM(1p)NAME
generate_histogram.pl -- Generate a histogram of Bio::DB::GFF features
SYNOPSIS
generate_histogram.pl -d gadfly variation gene:curated
DESCRIPTION
Use this utility to generate feature density histograms from Bio::DB::GFF databases. The result is a GFF data file that is suitable for
loading with load_gff.pl.
OPTIONS
The following options are recognized:
Option Description
-----------------
--dsn <dsn> Data source (default dbi:mysql:test)
--adaptor <adaptor> Schema adaptor (default dbi::mysqlopt)
--user <user> Username for mysql authentication
--pass <password> Password for mysql authentication
--aggregator <list> Comma-separated list of aggregators
BUGS
Please report them.
SEE ALSO
Bio::DB::GFF
AUTHOR
Lincoln Stein <lstein@cshl.org>
Copyright (c) 2001 Cold Spring Harbor Laboratory
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for
disclaimers of warranty.
perl v5.14.2 2012-03-02 BP_GENERATE_HISTOGRAM(1p)