Hi all hope you can help as I am going MAD!!! :eek:
The below is in a shell script but the redirection in the sed line does not work and outputs to the screen and the $fname_2 does note get created ?????
Can any one help ??
#!/bin/ksh
cd /app/
for fname in `ls -1 X*`
do
sed 1d $fname... (3 Replies)
I am using the time command in a script however the output of the time command will display on my screen but not my output file. Any Ideas on how to fix this?
> cat test.sh
#############################
#!/usr/bin/sh
for COMMAND in pwd
do
time ${COMMAND}
done | sed "s/^/ ... (4 Replies)
Hello all,
I have a script that I am trying to execute and redirect the output to a file, but I have trouble in redirection. The cron job is running properly as I see it in the mail.
This is what I am doing
In crontab file,
0 4 * * * somescript.sh > /some_location/`date '+%m%d%y_%H%M'`.log... (9 Replies)
I am looking to forward the following with masking via my .htaccess file:
www.mywebsite.com/origpage www.mywebsite.com/newpage
I do not want to forward the entire site, just this one page with masking. Neither page has an extension. I am able to forward with .htaccess - but it does not mask the... (1 Reply)
Hello,
Well I have a web with a very bad structure (a vBulletin forum) and I want it redirected to a newer folder in the same server but with a upper level folder.
Current structure is:
https://www.unix.com/vbulletin/upload/index.php
And I want it to be:... (0 Replies)
Hi,
I would like to use htaccess 301 redirect with URL hiding.
Ex:
when browse the website 'abc.com' it should show the contents of the page 'xyz.com/start/index.html' but in addressbar should show the domain 'abc.com'. I know it works with html URL frame rewrite. But my question is it... (0 Replies)
Hi,
I have perl script which is calling an external command using "system()" with argument.
But i am not able to capture the output.Even tried with backtick also with no luck.
.
.
$number=<>;
system ("cmd $number >output.txt"); (2 Replies)
I have the following directive in my .htaccess:
#RewriteRule ^mozrank/?$ "http://www.seobook.com/#a_aid=dh"
The problem is that the redirect is going to
http://www.seobook.com/%23a_aid=dh
How to preserve the # when redirecting? (2 Replies)
I have a script to send an email like below. Problem is, the if ..fi block is not getting executed, and is coming as a part of the email body. Can anyone take a look at this? :confused:
Log file shows this:
SEND_MAIL.prog: line 64:
: command not found
echo "Input Parameters"
echo... (11 Replies)
Discussion started by: mansmaan
11 Replies
LEARN ABOUT DEBIAN
swiss::ccs
SWISS::CCs(3pm) User Contributed Perl Documentation SWISS::CCs(3pm)Name
SWISS::CCs
Description
SWISS::CCs represents the CC lines within a Swiss-Prot or TrEMBL entry as specified in the user manual
http://www.expasy.org/sprot/userman.html . The CCs object is a container object which holds a list comprised of object of the type
SWISS::CC or derived classes (see below).
Code example
local $/="
//
";
while (<>) {
my $entry = SWISS::Entry-> fromText($_);
my @CCs = $entry -> CCs -> elements();
for my $CC (@CCs) {
if ($CC -> topic eq 'ALTERNATIVE PRODUCTS') {
# now can call methods of CCalt_prod
} elsif ($CC -> topic eq 'Copyright') {
# now can call methods of CCcopyright
} else {
# now can call methods of CC
}
}
}
Inherits from
SWISS::ListBase.pm
Attributes
"list"
Each list element is an object of one of the following classes, depending of the type of comment:
topic object
----------------------------------------
ALTERNATIVE PRODUCTS SWISS::CCalt_prod
RNA EDITING SWISS::CCrna_editing
BIOPHYSICOCHEMICAL PROPERTIES SWISS::CCbpc_properties
INTERACTION SWISS::CCinteraction
Copyright SWISS::CCcopyright
(all other topics) SWISS::CC
Methods
Standard methods
new
fromText
sort
Sort the CC block according to the order given in Swiss-Prot annotation note ANN017.
toText
update
Reading/Writing methods
ccTopic ($topic)
Returns true if entry contains a comment block with the specified topic.
copyright
Returns a string representation of the copyright text.
del (@patternList)
Deletes all comment elements whose topic matches the first element of the pattern list. The second element is the used to specify a
requirement for the comment to match as well.
get (@patternList)
An array is returned consisting of all comment elements elements whose topic matches any elements of the pattern list.
getObject (@patternList)
Same as get, but returns the results wrapped in a new ListBase object.
toString
Returns a string representation of the CCs object.
perl v5.10.1 2008-07-16 SWISS::CCs(3pm)