cd(n) Tcl Built-In Commands cd(n)
__________________________________________________________________________________________________________________________________________________NAME
cd - Change working directory
SYNOPSIS
cd ?dirName?
_________________________________________________________________DESCRIPTION
Change the current working directory to dirName, or to the home directory (as specified in the HOME environment variable) if dirName is not
given. Returns an empty string.
SEE ALSO
filename(n), glob(n), pwd(n)
KEYWORDS
working directory
Tcl cd(n)
Check Out this Related Man Page
pwd(3tcl) Tcl Built-In Commands pwd(3tcl)__________________________________________________________________________________________________________________________________________________NAME
pwd - Return the absolute path of the current working directory
SYNOPSIS
pwd
_________________________________________________________________DESCRIPTION
Returns the absolute path name of the current working directory.
EXAMPLE
Sometimes it is useful to change to a known directory when running some external command using exec, but it is important to keep the appli-
cation usually running in the directory that it was started in (unless the user specifies otherwise) since that minimizes user confusion.
The way to do this is to save the current directory while the external command is being run:
set tarFile [file normalize somefile.tar]
set savedDir [pwd]
cd /tmp
exec tar -xf $tarFile
cd $savedDir
SEE ALSO file(3tcl), cd(3tcl), glob(3tcl), filename(3tcl)KEYWORDS
working directory
Tclpwd(3tcl)
What's wrong with this script?????
Please help!!!
!#/bin/sh
echo "please enter dir"
read input
cd $input
I'm trying to make a simple script to change dir. But does not work.
it stays at the same dir where i run the script.
What did i do wrong?? (21 Replies)
I'm running Solaris 9, using the CDE gui on a SunBlade 100. I want to substitute the generic wallpapers that CDE has, with my own, i.e. my kids, dog, etc.
Suggestions? Directions??
Thanks in advance. (19 Replies)
Hi all am trying to boot the system from cdrom in single user mode , however when i am giving command boot cdrom -s i am getting below error
Boot Device: /pci@1f,0/pci@1,1/ide@3/cdrom@2,0: f file and args:
Can't read disk label
Can't open disk label package
can,t open boot device
... (17 Replies)
Hi....
cd command is not working when dual string drive/volume name is passed to cd through variables.......
For Ex....
y=/Volumes/Backup\ vipin/
cd $y
the above command gives error.......
anyone with a genuine solution ? (16 Replies)
Server need to have the OS reinstalled (5.10 SPARC) and I cannot get it to the OK prompt. I also do not have the ALOM password and I've tried several different methods to zero out the NVRAM but to no avail. There is no ALOM battery that I can pull. I'm connecting via Cutecom (like minicom) and... (18 Replies)
Hello,
First i'm Dutch, and my English is not very well. Sorry. :D
I have got a Sun Microsystems Ultra 3D (with SPARC processor). The file must be burned to a DVD. And my computer can onley read a cd.
How to get Solaris 10 on a few cds?
Please help me.
Thanks a lot..
Greets. (21 Replies)
Hello
Recently I found this (for me) really usefull tool kexec which can load a new Kernel while running one.
I tested it some times with the same kernel I was running, "rebooting" the system without powering it off at any time :D
But I need kexec basically just for live usbs. I want to start... (17 Replies)
Recently our school acquired a number of Sun Blade 100 systems from a university that was previously using them as a computational cluster. We intend to rig them to do the same thing, but they failed to give us the head node, and all the machines we have are still configured to boot from network.... (16 Replies)
Hi,
I've a question regarding a smbclient-Command in my shell script.
Here my relevant script part:
fileattr=`/opt/samba/bin/smbclient --authentication-file=$AUTH_FILE //$SMB_HOST/$SMB_SHARE 2> /dev/null
prompt off
cd $SMB_DIR
put $LOC_FILE $SMB_FILE
dir /$SMB_DIR/$SMB_FILE
... (17 Replies)
Hello,
I have a sun v880 that i got from ebay for cheap as a way to to learn Solaris and sun hardware in general.
The machine currently has OBP 4.7.0 2002/10/25 and i was wondering if there was a way to update the prom with out and active solaris install, as currently when i proceed with the... (29 Replies)
Hi,
I am in a terrible emergency. I have multiple cdr files with line count >6000.
I need to append |0| | | | | | | |random| to end of each line. The random number should never repeat.
Please help with a shell script to process all cdr's in a directory with above requirement. (23 Replies)
Hi,
I want to convert ebcdic values to ascii values. Are there anyany specific c++ libraries with g++ compiler, which can do it ?
gcc version 4.1.2 20080704 (Red Hat 4.1.2-54) (19 Replies)
I have a file in my Unix ( SOLARIS ) with EBCDIC format...I want this file to read in ASCII OR unicode...Is it possible with UNIX to convert this file on ASCII OR UNICODE format from EBCDIC format?
I was searching through web and found only conversion table :(
Request Rejected
Below is... (16 Replies)