12-05-2003
changing directory on server
hi,
I'm doing to some simple socket programming.
I have a client that connects to the server and request stuff.
For example, if the client type in "ls", that command will be sent to the server and the server will send back the ls information the client requested. Similarly, if the client type "pwd", the server will send back the current working directory (ie, /home/program) to the client. Now if the client type in "cd newfolder" to change directory to a new folder, and since the program is running on the current directory already, it can't change to another directory. How can this be done?
thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
Can you please help ? I work on SCO Unix Open server Rel. 5.
User root on Unix can change/view/modify any files belonging to any user on a file system.
Is there any way where I can prevent non-root users to change thier directories to other non-root users area.
for eg. There are 2 users... (3 Replies)
Discussion started by: taher_n
3 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends !
I want to change my current directory through a script.
I am running the script say, from /home/proj directory.
The script is like this :
#!/usr/bin/sh
cd module/pack/data
once i run the script, i am still in /home/proj directory only.
My problem is, i dont want to type... (5 Replies)
Discussion started by: mrgubbala
5 Replies
3. Red Hat
I recently activated tripwire on my redhat 9 box.
Tripwire reports that the time and date of the directory /root is being modified. Also the file inside root called .viminfo is also changing checksum and being modified.
I tried to google some answers but had no luck so far.
Is this normal... (1 Reply)
Discussion started by: Alux
1 Replies
4. Windows & DOS: Issues & Discussions
Just installed SFU in my PC running under Windows XP Pro. Could someone tell us how to change directory and to its subdirectories either by Korn Shell or C Shell?
I tried, cd f:\ or chdir f:\ but it didn't work. (1 Reply)
Discussion started by: ilak1008
1 Replies
5. Shell Programming and Scripting
Hello All:
I have an LDAP server that is used for authentication. Now the home directory id set to : /export/home/user1 . But I am logging in to different machines Solaris, Linux. The problem is I want the home directory to change depending on the os version (e.g. /export/home/user1/linux). Can... (1 Reply)
Discussion started by: disturbe_d
1 Replies
6. UNIX for Dummies Questions & Answers
I thought this was as easy as a piece of cake. But it has had me spinning. Here is how my script looks like:
When the script finishes and I pwd, I am back to square one. Any help? Thanks in advance.
HP-UX hostname B.11.23 U ia64 3308722091 unlimited-user license (5 Replies)
Discussion started by: ron_it_guy
5 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I am in /home/development/project/abc directory. Now I want to remove one file which is kept in /trial/dev/<file> directory.
I would like to do it in one command.
I tried changing directory in one command like:
pwd
/home/development/project/abc
cd ~/trial/dev/
bash: no command... (2 Replies)
Discussion started by: palak08
2 Replies
8. UNIX for Dummies Questions & Answers
Hi, Im getting this annoying problem on file permission when I copy a folder to a mounted external directory. the files inside the copied folders become all executable. I tried to search for ways how to undo the permission over the web but to no avail.
tried this one but it doesnt change a... (2 Replies)
Discussion started by: ida1215
2 Replies
9. Solaris
Hi ,
I want to change owner of files or folder from 23186 to dsadm,
Present
-------
-rw-r--r-- 1 23186 gdstage 10240 Oct 31 2007 BLTRS
drwxrwxrwx 3 23186 gdstage 512 Sep 1 2010 sql
Required as
-----------
-rw-r--r-- 1 dsadm gdstage 10240 Oct 31 2007 BLTRS
drwxrwxrwx 3 dsadm gdstage... (6 Replies)
Discussion started by: sridhardwh
6 Replies
10. Shell Programming and Scripting
accidentally i have changed ownership of a directory,subdirectory and files wil below command. I want to the change ownership back as same as in same directory on another server. How can i do it?
chown -R user:group /u01
is there any simple script? it is really an urgent need.. (2 Replies)
Discussion started by: johnveslin
2 Replies
LEARN ABOUT SUNOS
asadmin-get-client-stubs
asadmin-get-client-stubs(1AS) User Commands asadmin-get-client-stubs(1AS)
NAME
asadmin-get-client-stubs, get-client-stubs - gets the stubs of the client
SYNOPSIS
get-client-stubs --user admin_user [--password admin_password] [--host localhost] [--port 4848] [--secure|-s] [--passwordfile filename]
[--terse=false] [--echo=false] [--interactive] --appname application_name local_directory_path
Gets the client stubs JAR file for an AppClient standalone module or an application containing the AppClient module, from the server
machine to the local directory. This command is supported in remote mode only.
OPTIONS
--user authorized domain application server administrative username.
--password password to administer the domain application server.
--host machine name where the domain application server is running.
--port port number of the domain application server listening for administration requests.
--secure if true, uses SSL/TLS to communicate with the domain application server.
--passwordfile file containing the domain application server password.
--terse indicates that any output data must be very concise, typically avoiding human-friendly sentences and favoring well-
formatted data for consumption by a script.
--echo setting to true will echo the command line statement on the standard output.
--interactive prompts you for the required options that are not already specified.
--appname name of the application.
OPERANDS
local_directory_path path to the local directory where the client stub should be stored.
Example 1: Using get-client-stubs
asadmin> get-client-stubs --user admin --password adminadmin
--host fuyako --port 7070 --appname myapplication.ear /sample/exmple
EXIT STATUS
0 command executed successfully
1 error in executing the command
asadmin-undeploy(1AS)
J2EE 1.4 SDK March 2004 asadmin-get-client-stubs(1AS)