Error in executing Perl script

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Error in executing Perl script
# 8  
Old 09-09-2011
command doesn't seem to have any issues.

try with -v debug mode(-v, -vv, -vvv), we may get some idea

ssh -v -o 'PasswordAuthentication yes' -o 'PreferredAuthentications publickey' -i $HOME/.ssh/id_dsa us320

# 9  
Old 09-12-2011
Thanks Ahmed for your reply

I have run it in the debug mode
Now here is the observation

In Unix server it ran fine ..Logs are below

OpenSSH_5.2p1_q7.gbe9e533M, OpenSSL 0.9.8k 25 Mar 2009
debug1: Reading configuration data /etc/opt/quest/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to us320 [] port 22.
debug1: Connection established.
debug2: key_type_from_name: unknown key type '-----BEGIN'
debug2: key_type_from_name: unknown key type '-----END'
debug1: identity file /home/r141695/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.2
debug1: match: OpenSSH_5.2 pat OpenSSH*

But in Informatica log is below

Process id 14221434. Standard output and error:
OpenSSH_5.2p1_q7.gbe9e533M, OpenSSL 0.9.8k 25 Mar 2009
command-line line 0: Missing yes/no argument.

Can you pleas help me out
# 10  
Old 09-12-2011
Does ssh work without any arguments? i.e.

ssh -i $HOME/.ssh/id_dsa us320

Try these and check if ssh is running
#On local server
which ssh
#On remote server
ps -eaf | grep ssh

# 11  
Old 09-12-2011

I think I got the issue why informatica is behaving such way

When I run the below command without " ' " option like

ssh -vv -o PasswordAuthentication yes -o ForwardAgent no -i $HOME/.ssh/id_dsa us320

It errors

OpenSSH_5.2p1_q7.gbe9e533M, OpenSSL 0.9.8k 25 Mar 2009
command-line line 0: Missing yes/no argument.

The exact error I am finding in Informatica so somehow infa unable to parse the " ' " value
Please help me out how to get rid of this
# 12  
Old 09-12-2011
try double quotes??
ssh -vv -o "PasswordAuthentication=yes" -o "ForwardAgent=no" -i $HOME/.ssh/id_dsa us320

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Executing perl script in Linux gives :Exec format error. Wrong Architecture

i have perl script that used to be working great , once i edit it in windows and convert it to UTF-8 and then via FTP return it . also did: chmod +x and then when i try to run it : ./ im getting this error: ./ Exec format error. Wrong Architecture.... (4 Replies)
Discussion started by: umen
4 Replies

2. Shell Programming and Scripting

Perl : Global symbol requires explicit package name Error while executing

I have executed the below perl script for copying the file from one server to another server using scp. #!/usr/bin/perl -w use Net::SCP::Expect; use strict; $server= "x.x.x.x"; my $source = "/mypath/mypath"; my $destination = "/home/"; print "Login...Starting scp..."; $user="admin";... (1 Reply)
Discussion started by: scriptscript
1 Replies

3. Shell Programming and Scripting

Help in executing select query from perl script

Hi, I have a perl snippet that call a select query with a bind variable,when i compile the script I'm unable to get the query output. The same query when i fire in sqlplus fetches few rows. The query takes bit time to fetch results in sqlplus. my $getaccts = $lda->prepare("select distinct ... (1 Reply)
Discussion started by: rkrish
1 Replies

4. Shell Programming and Scripting

executing perl script from another perl script : NOT WORKING

Hi Folks, I have 2 perl scripts and I need to execute 2nd perl script from the 1st perl script in WINDOWS. In the 1st perl script that I had, I am calling the 2nd script =========== print "This is my main script\n"; `perl C:\\Users\\sripathg\\Desktop\\scripts\\`; ... (3 Replies)
Discussion started by: giridhar276
3 Replies

5. Shell Programming and Scripting

Executing AWK in a perl script using 'system'...

I have a simple perl script that looks similar to this: #!/usr/bin/perl/ # Have a lot of PERL code in the front of this script. #Would now like to execute a system command using AWK system (qq(cd /location && awk '/full/ {print $1;exit}' /myfile)); The system command in my perl script... (4 Replies)
Discussion started by: SysAdm2
4 Replies

6. Programming

Date time problem while executing perl script.

Hi All, This Monday 15th March 2010, i have faced a weired issue with my Perl script execution, this script is scheduled to run at 1 minute past midnight on daily basis ( 00:01 EST ) generally for fetching previous business date , say if it is Monday it should give last Friday date, for Tuesday... (0 Replies)
Discussion started by: ravimishra
0 Replies

7. Shell Programming and Scripting

Perl script not executing

Hi All, I have been given a perl script to modify but which is not running completely.And it is not showing any errors also. The script is : #!/usr/local/bin/perl print "Which transaction? "; print "\n"; print "1 - Inquiry"; print "\n"; print "2 - Delete Bank"; print "\n"; print... (8 Replies)
Discussion started by: usha rao
8 Replies

8. Shell Programming and Scripting

Error executing shell command from a perl script

Hi Gurus, I've a find command that gets the list of files from a source directory where the extension is not html, xml, jsp, shtml or htaccess. The below find command runs fine from the command prompt or in a shell script. I need to eventually run it in a PERL script and am getting the... (5 Replies)
Discussion started by: voorkey
5 Replies

9. Shell Programming and Scripting

Executing .profile from perl script

Hi, How can i execute .profile from a perl script I need this - i am trying to run perl script from crontab and it looses the environment variables Please provide help Your help is greatly appreciated Thanks (1 Reply)
Discussion started by: prekida
1 Replies

10. Shell Programming and Scripting

Problem executing setuid script in perl-5.8.6

Hi, I have a script ( that can be run by anyone. The script internally has to read a file and write into few files which are owned by user 'myUser'. Has to read the following file: -rwx------ 1 myuser myuser 4986 Aug 20 18:11 my.file Has to write into following files: ... (0 Replies)
Discussion started by: sarmakdvsr
0 Replies
Login or Register to Ask a Question