The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Perl script 'system' linking to local shell script not working phpfreak Shell Programming and Scripting 5 10-16-2009 04:56 AM
(Urgent):Creating flat file using sql script and sqlplus from UNIX Shell Script praka Shell Programming and Scripting 6 04-15-2009 06:09 AM
need inputs on how i can change my script to reduce amount of time the script takes madhul2002 Shell Programming and Scripting 1 04-01-2009 07:40 PM
create a shell script that calls another script and and an awk script magikminox Shell Programming and Scripting 0 06-26-2008 02:50 AM
Shell Script: want to insert values in database when update script runs ring Shell Programming and Scripting 1 10-25-2007 03:06 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 1 Week Ago
temhem temhem is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 21
Exclamation How can i run SH script?

Hi All,

i am on serverA and i can log in to serverB. But after login to serverB "cd /home/user" and "ls" commands are run successfully but topl.sh script couldnt run.

What can i do for achive this?

sftp user@serverB <<-EOF
cd /home/user
ls
home/oper/topl.sh
mget odeme
mget taksit
bye
EOF

thanx.
  #2 (permalink)  
Old 1 Week Ago
fpmurphy's Avatar
fpmurphy fpmurphy is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2003
Location: Florida
Posts: 1,910
You cannot run a shell script on a remote machine using sftp.
  #3 (permalink)  
Old 1 Week Ago
temhem temhem is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 21
are there any way to run shell script?
  #4 (permalink)  
Old 1 Week Ago
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 429
yes, you can use ssh to execute commands..
  #5 (permalink)  
Old 1 Week Ago
temhem temhem is offline
Registered User
  
 

Join Date: Sep 2009
Posts: 21
hi again,
i need to execution shell script automatically. bu it cant be via ssh.

finally, i solved my problem with crontab.
after Cron run the my shell script on serverB my other(major) script will runned by Cron on ServerA.

Thanx all.
Sponsored Links
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 10:35 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0