How to open a directory and save code in it Gerris in Linux?
up vote
1
down vote
favorite
I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine.
[sbalta@dps11 bin]$ cd vorticity
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ GfsTime { end = 0 }
-bash: GfsTime: command not found
[sbalta@dps11 vorticity]$ }
-bash: syntax error near unexpected token `}'
[sbalta@dps11 vorticity]$ GfsBox {}
-bash: GfsBox: command not found
[sbalta@dps11 vorticity]$ 1 1 right
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 1 top
-bash: 1: command not found
terminal directory
|
show 1 more comment
up vote
1
down vote
favorite
I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine.
[sbalta@dps11 bin]$ cd vorticity
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ GfsTime { end = 0 }
-bash: GfsTime: command not found
[sbalta@dps11 vorticity]$ }
-bash: syntax error near unexpected token `}'
[sbalta@dps11 vorticity]$ GfsBox {}
-bash: GfsBox: command not found
[sbalta@dps11 vorticity]$ 1 1 right
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 1 top
-bash: 1: command not found
terminal directory
1
You need to enter that code in a file, using a text editor, and save that file wherever you want.
– Mat
Jan 25 '14 at 14:24
thank you for reply. so how can run it? i am so new to this stuff
– user57606
Jan 25 '14 at 15:13
Please read the tutorial.
– Mat
Jan 25 '14 at 15:14
Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
– user57606
Jan 25 '14 at 16:06
"using a text editor", don't use a fancy word processor.
– Mat
Jan 25 '14 at 16:09
|
show 1 more comment
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine.
[sbalta@dps11 bin]$ cd vorticity
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ GfsTime { end = 0 }
-bash: GfsTime: command not found
[sbalta@dps11 vorticity]$ }
-bash: syntax error near unexpected token `}'
[sbalta@dps11 vorticity]$ GfsBox {}
-bash: GfsBox: command not found
[sbalta@dps11 vorticity]$ 1 1 right
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 1 top
-bash: 1: command not found
terminal directory
I have to simulate. but I cannot open and type these codes below in vortivcity directory.I am using remote connection from mac to university machine.
[sbalta@dps11 bin]$ cd vorticity
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 2 GfsSimulation GfsBox GfsGEdge {} {
-bash: 1: command not found
[sbalta@dps11 vorticity]$ GfsTime { end = 0 }
-bash: GfsTime: command not found
[sbalta@dps11 vorticity]$ }
-bash: syntax error near unexpected token `}'
[sbalta@dps11 vorticity]$ GfsBox {}
-bash: GfsBox: command not found
[sbalta@dps11 vorticity]$ 1 1 right
-bash: 1: command not found
[sbalta@dps11 vorticity]$ 1 1 top
-bash: 1: command not found
terminal directory
terminal directory
edited Nov 25 at 14:44
Rui F Ribeiro
38.3k1475126
38.3k1475126
asked Jan 25 '14 at 14:01
user57606
83
83
1
You need to enter that code in a file, using a text editor, and save that file wherever you want.
– Mat
Jan 25 '14 at 14:24
thank you for reply. so how can run it? i am so new to this stuff
– user57606
Jan 25 '14 at 15:13
Please read the tutorial.
– Mat
Jan 25 '14 at 15:14
Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
– user57606
Jan 25 '14 at 16:06
"using a text editor", don't use a fancy word processor.
– Mat
Jan 25 '14 at 16:09
|
show 1 more comment
1
You need to enter that code in a file, using a text editor, and save that file wherever you want.
– Mat
Jan 25 '14 at 14:24
thank you for reply. so how can run it? i am so new to this stuff
– user57606
Jan 25 '14 at 15:13
Please read the tutorial.
– Mat
Jan 25 '14 at 15:14
Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
– user57606
Jan 25 '14 at 16:06
"using a text editor", don't use a fancy word processor.
– Mat
Jan 25 '14 at 16:09
1
1
You need to enter that code in a file, using a text editor, and save that file wherever you want.
– Mat
Jan 25 '14 at 14:24
You need to enter that code in a file, using a text editor, and save that file wherever you want.
– Mat
Jan 25 '14 at 14:24
thank you for reply. so how can run it? i am so new to this stuff
– user57606
Jan 25 '14 at 15:13
thank you for reply. so how can run it? i am so new to this stuff
– user57606
Jan 25 '14 at 15:13
Please read the tutorial.
– Mat
Jan 25 '14 at 15:14
Please read the tutorial.
– Mat
Jan 25 '14 at 15:14
Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
– user57606
Jan 25 '14 at 16:06
Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
– user57606
Jan 25 '14 at 16:06
"using a text editor", don't use a fancy word processor.
– Mat
Jan 25 '14 at 16:09
"using a text editor", don't use a fancy word processor.
– Mat
Jan 25 '14 at 16:09
|
show 1 more comment
1 Answer
1
active
oldest
votes
up vote
1
down vote
accepted
A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.
You have not told us what operating system the remote machine is but one (or more) of these should already be installed:
nano
vim
<-- NOT easy to use if you don't know it
emacs
<-- slightly easier to use (the first time) but still geekygedit
pluma
kate
nedit
Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs
).
Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:
gerris2D mycode.gfs
@user57606 I was asking about the remote system, not your local one.
– terdon♦
Jan 25 '14 at 18:16
remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20
@user57606 OK, in that case mynano
should work. Did you manage it?
– terdon♦
Jan 25 '14 at 18:21
Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22
@user57606 useCtrl+O
(WriteOut) to save the file in nano.
– terdon♦
Jan 25 '14 at 18:23
|
show 5 more comments
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
accepted
A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.
You have not told us what operating system the remote machine is but one (or more) of these should already be installed:
nano
vim
<-- NOT easy to use if you don't know it
emacs
<-- slightly easier to use (the first time) but still geekygedit
pluma
kate
nedit
Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs
).
Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:
gerris2D mycode.gfs
@user57606 I was asking about the remote system, not your local one.
– terdon♦
Jan 25 '14 at 18:16
remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20
@user57606 OK, in that case mynano
should work. Did you manage it?
– terdon♦
Jan 25 '14 at 18:21
Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22
@user57606 useCtrl+O
(WriteOut) to save the file in nano.
– terdon♦
Jan 25 '14 at 18:23
|
show 5 more comments
up vote
1
down vote
accepted
A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.
You have not told us what operating system the remote machine is but one (or more) of these should already be installed:
nano
vim
<-- NOT easy to use if you don't know it
emacs
<-- slightly easier to use (the first time) but still geekygedit
pluma
kate
nedit
Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs
).
Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:
gerris2D mycode.gfs
@user57606 I was asking about the remote system, not your local one.
– terdon♦
Jan 25 '14 at 18:16
remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20
@user57606 OK, in that case mynano
should work. Did you manage it?
– terdon♦
Jan 25 '14 at 18:21
Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22
@user57606 useCtrl+O
(WriteOut) to save the file in nano.
– terdon♦
Jan 25 '14 at 18:23
|
show 5 more comments
up vote
1
down vote
accepted
up vote
1
down vote
accepted
A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.
You have not told us what operating system the remote machine is but one (or more) of these should already be installed:
nano
vim
<-- NOT easy to use if you don't know it
emacs
<-- slightly easier to use (the first time) but still geekygedit
pluma
kate
nedit
Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs
).
Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:
gerris2D mycode.gfs
A text editor is not a word processor. You need to save your code as a simple text file, you can do that either by choosing "save as text" or the equivalent option in whichever word processor you used that created an rtf file, or just use a simple text editor.
You have not told us what operating system the remote machine is but one (or more) of these should already be installed:
nano
vim
<-- NOT easy to use if you don't know it
emacs
<-- slightly easier to use (the first time) but still geekygedit
pluma
kate
nedit
Just try these commands, the first one is almost certain to work on prety much whatever system you are running. Paste your lines into a blank file, and save it as something (for example mycode.gfs
).
Once you have saved the file, you will need to run it using Gerris. I have never used this program but according to it's wiki, you should be able to do something like:
gerris2D mycode.gfs
answered Jan 25 '14 at 17:52
terdon♦
126k31243419
126k31243419
@user57606 I was asking about the remote system, not your local one.
– terdon♦
Jan 25 '14 at 18:16
remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20
@user57606 OK, in that case mynano
should work. Did you manage it?
– terdon♦
Jan 25 '14 at 18:21
Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22
@user57606 useCtrl+O
(WriteOut) to save the file in nano.
– terdon♦
Jan 25 '14 at 18:23
|
show 5 more comments
@user57606 I was asking about the remote system, not your local one.
– terdon♦
Jan 25 '14 at 18:16
remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20
@user57606 OK, in that case mynano
should work. Did you manage it?
– terdon♦
Jan 25 '14 at 18:21
Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22
@user57606 useCtrl+O
(WriteOut) to save the file in nano.
– terdon♦
Jan 25 '14 at 18:23
@user57606 I was asking about the remote system, not your local one.
– terdon♦
Jan 25 '14 at 18:16
@user57606 I was asking about the remote system, not your local one.
– terdon♦
Jan 25 '14 at 18:16
remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20
remote system is Linux - the university's system
– user57606
Jan 25 '14 at 18:20
@user57606 OK, in that case my
nano
should work. Did you manage it?– terdon♦
Jan 25 '14 at 18:21
@user57606 OK, in that case my
nano
should work. Did you manage it?– terdon♦
Jan 25 '14 at 18:21
Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22
Yes nano works but Sorry I could not save that blank file
– user57606
Jan 25 '14 at 18:22
@user57606 use
Ctrl+O
(WriteOut) to save the file in nano.– terdon♦
Jan 25 '14 at 18:23
@user57606 use
Ctrl+O
(WriteOut) to save the file in nano.– terdon♦
Jan 25 '14 at 18:23
|
show 5 more comments
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f110873%2fhow-to-open-a-directory-and-save-code-in-it-gerris-in-linux%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
You need to enter that code in a file, using a text editor, and save that file wherever you want.
– Mat
Jan 25 '14 at 14:24
thank you for reply. so how can run it? i am so new to this stuff
– user57606
Jan 25 '14 at 15:13
Please read the tutorial.
– Mat
Jan 25 '14 at 15:14
Of course I read. but the problem is text editor is saving the file as rtf format. Thanks
– user57606
Jan 25 '14 at 16:06
"using a text editor", don't use a fancy word processor.
– Mat
Jan 25 '14 at 16:09