open new shell


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting open new shell
# 1  
Old 11-24-2008
open new shell

Ik have written an simpel script to automount mij Samba share over SSH.
#!/bin/bash
mkdir /Volumes/Samba
ssh -L139:192.168.123.2:139 test@remotetest.dyndns.org
#Here must be opened a new shell because other wise the mounting of the samba share will by tried on the server where I connect to.
mount_smbfs //test@localhost/test /Volumes/Samba

My question is: How do you open a new shell in a shell script so the following commands wil be entered in that shell. Is this possible?
The client I will put op this shell script is Mac osx
Server Ubuntu Linux

Many Thannks!
# 2  
Old 02-03-2009
Is this question still relevant to you?

The last week in November isn't exactly a good time to ask questions. If you still have a problem, please clarify your question: why are you trying to ssh into a remote server? Are you trying to mount the remote server onto the local one?
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Shell Script for re-installation of open office

Below is the script for open office automatic re-installation, there are different versions on different servers the below script will check the version of the openoffice and will reinstall the same version(downloading for httpd server) the below code looks lengthy can we make it short ... (3 Replies)
Discussion started by: James0806
3 Replies

2. Shell Programming and Scripting

Open and edit a file using a shell script

Hello Folks, I have a file named as date.dat present at /tmp/abc location which has following data - 20161030,20161031,20161101 I need to remove this line and replace it with something like below - $param1,$param2,$param3 Param1, Param2 and param3 stores the date based on some calculation in... (1 Reply)
Discussion started by: ektubbe
1 Replies

3. UNIX for Advanced & Expert Users

Open a webbrowser link from shell script

Hi All I have a task which is manually submitted from a web browser link, by entering a value. This has an xml code as well. I am looking for options to automate the above to avoid manual intervention/dependency. Is there a way I can achieve this using shell script? Either open the link by... (3 Replies)
Discussion started by: sparks
3 Replies

4. Shell Programming and Scripting

To open a file in shell script.

Hi Guys, I want to open a file in shell script and copy the last file of the line for display. Can anyone help?? (3 Replies)
Discussion started by: Karthick N
3 Replies

5. Shell Programming and Scripting

Open a file from within a Bourne shell Script

I am suppose to make a program that cuts the extension off of a file. It uses that .ext to decide which program needs to be used to open the file. This only finds the name of the program from a list of programs I made. My problem is when it has the name of the program it needs to use, how can I... (3 Replies)
Discussion started by: dordrix
3 Replies

6. Shell Programming and Scripting

can i send shell commands to a open window

i want to write a script that automatically fills in a form and pushes a few buttons. can i do that with bash or something similar? (1 Reply)
Discussion started by: magiling
1 Replies

7. Shell Programming and Scripting

Perl open a remote shell

Hello , I am writing a script which takes the user name , password and hostname from the database and login to the server . I am only able to login to the server and my script logs out and only I can run few command if I provide those command in my script else I am not able to run those... (11 Replies)
Discussion started by: pratapsingh
11 Replies

8. Shell Programming and Scripting

Can I set Password to open my shell script?

Hi All, please help me on how to secure my shell script? I chnanged it to read-only mode using 'chmod'. but still i would like to set password for open the script. Is there any way? Please help me!! Thankyou all in advance!! :b: (6 Replies)
Discussion started by: little_wonder
6 Replies

9. Shell Programming and Scripting

open a file in shell script

Hi all How to open a file in a unix shell program. also i want it open for an hour and run independent of other jobs. pls help me solve this issue... (2 Replies)
Discussion started by: bankpro
2 Replies
Login or Register to Ask a Question