The UNIX and Linux Forums  


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
How to stop a script running in remote server from local script mannepalli Shell Programming and Scripting 1 03-04-2009 08:18 PM
running terminal with script cdfd123 Shell Programming and Scripting 3 12-13-2008 03:35 AM
Running a Script in a Remote server ZeroGPX Shell Programming and Scripting 2 03-07-2008 08:07 PM
Running a script without a terminal session jjinno Shell Programming and Scripting 3 10-03-2007 02:50 AM
running a script on remote server. whited05 Shell Programming and Scripting 1 10-20-2005 06:07 AM

 
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1 (permalink)  
Old 4 Weeks Ago
lozyness lozyness is offline
Registered User
  
 

Join Date: Nov 2009
Posts: 1
Problems running script on remote Terminal

Hi,
I'm new here so please excuse any stupidity that occurs in my post :P
My situation:
Have a java program which I have to run a ridiculous amount of times and put the output data into a text file.
Thought the easiest way to do this would be to delve into the world of scripts.
I am at home (on a mac) with remote access to my university computers (linux).
Wrote a script which I think might possibly work:


Code:
i=50
while [ $i <= 1000]
do
    java RMIClient telford-00 1090 $i > "$i.txt"
    count='expr $i + 10'
done

I uploaded it into the same directory as the code
Followed some instructions on the internet to chmod it using:

Code:
chmod +x RMIScript.sh

Where RMIScript is the name of the script.

Tried to run it using both:

Code:
sh ./RMIScript.sh

and

Code:
./RMIScript.sh

however both come out with errors 'cannot open =: No such file'

Any advice would be appreciated.

Edit:
Changed code to:

Code:
i=50
while [ $i -lt 1000]
do
    java RMIClient telford-00 1090 $i > "$i.txt"
    i=$[i + 10]
done

same error.

Last edited by lozyness; 4 Weeks Ago at 09:45 AM.. Reason: Change in code
 

Bookmarks

Tags
remote console, running error

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 02:51 AM.


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