The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
what is wrong with this script? rs1969 UNIX for Dummies Questions & Answers 2 11-15-2007 07:16 AM
What's wrong with this script amitg1980 Shell Programming and Scripting 3 11-12-2007 07:00 PM
what is wrong with this script? hankooknara Shell Programming and Scripting 8 06-09-2007 01:33 PM
What is wrong with this script? heprox Shell Programming and Scripting 8 11-16-2006 05:43 AM
What is wrong with my script? Lem2003 UNIX for Dummies Questions & Answers 6 05-29-2003 02:17 AM

Closed Thread
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
  #1 (permalink)  
Old 02-10-2009
Mike1234 Mike1234 is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 10
what is wrong with this script?

Hi

I've made a short script but it is not working. Can some pl. help me out in this?

./123.sh
Code:
#! /usr/bin/ksh
# for changing to this directory
cd /layered/relational/scripts
When I run the above scripts, it doesn't change to the above directory. I don't what is the problem? the permissions of the file is ok. i.e.755.
Can someone pl. tell me the solution?

Thanks
Mike

Last edited by vgersh99; 02-10-2009 at 12:37 PM.. Reason: code tags PLEASE
  #2 (permalink)  
Old 02-10-2009
vgersh99's Avatar
vgersh99 vgersh99 is online now Forum Staff  
Moderator
  
 

Join Date: Feb 2005
Location: Boston, MA
Posts: 5,122
Code:
. ./123.sh
  #3 (permalink)  
Old 02-10-2009
omegad22 omegad22 is offline
Registered User
  
 

Join Date: Nov 2008
Posts: 4
Surely that'll cd to the directory, but then the shell exits and you're back where you started.
Closed Thread

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 09:45 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