Automate a command using shell script

Closed
max - Sep 17, 2009 at 01:54 AM
sharpman Posts 1021 Registration date Saturday May 23, 2009 Status Contributor Last seen October 20, 2010 - Sep 17, 2009 at 06:33 PM
Hello,
Max here.

In terminal "cd" command is used to change a directory.

suppose..
================
~/Desktop $] cd /home
~/home $]
================


Now the same thing I want to do using
a shell file.

I am doing with

run(filename)
============
cd /home
============

$]./run
$]

It is done but path is not changed.


CAN ANYONE HELP ME?
Related:

1 response

sharpman Posts 1021 Registration date Saturday May 23, 2009 Status Contributor Last seen October 20, 2010 183
Sep 17, 2009 at 06:33 PM
have a read here.
http://www.freeos.com/guides/lsst/

all may be revealed
0