I suspect the difference arises from the remote ftp code's rename command being implemented two different ways on the remote servers:
system 1
call the equivalent of C:
This would mean invoking the /bin/sh shell on the remote machine, which in turn would see a '#' character as a comment, which requires your escape "\" fix.
system 2
call the mv syscall or the C standard library's rename library call - this never invokes /bin/sh so no shell is called.
Note: /bin/sh can be a completely different object on different machines - it is NOT necessarily the shell that you use to run the ftp script locally.
This User Gave Thanks to jim mcnamara For This Post:
I doin a script in sh.
For example:
i have this code here whereby $5 is a text file. eg file.txt. I wanna rename it to file.txt.tmp. so i use this code below which is correct.
put $5 $5.tmp
But when the ftp transfer is complete i need to rename the file back to $5 which is file.txt.
How do... (2 Replies)
hi friends,
I writing a script to psot dataset to ceratin server.....while doing ftp I have to rename the file while which is in present server like
present :test server
filename data.097878.
ftp server: it sholu be renamed as data.097878.zip
thanks,
The thing is that while... (1 Reply)
Hi All,
I want to rename set of files in the remote server which iam unable to do . i can rename only one file
at a time . for example
ftp $REMOTESERVER
{
rename $NAME1 $NAME2
} is working
whereas
ftp $REMOTESERVER
{
rename $NAME1*.dat $NAME2*.data
} is not working ...... (4 Replies)
Hi
I have following list of files at a path:
01.AR.asset
01.AR.index
01.AR.asset.vf
01.AR.asset.xv
I want to rename all these files as follows:
73.AR.asset.Z
73.AR.index.Z
73.AR.asset.vf.Z
73.AR.asset.xv.Z
Can any body give me a single command to acheive the above results.
... (5 Replies)
How do i rename all the files using a script ?
My server create log files and save them with numbering behind the name. for e.g. daily_20080101.log.0001 and so on ... How do a script and crontab it to remove all the numbering? Please help thanks. (2 Replies)
Greetings,
I am very new to the UNIX shell scripting and would like to learn. However, I am currently stuck on how to process the below sample :
Filename : DOCabcdef24387987ab90d.xml
Pattern "DOC"+any character using and +".xml"
And i want to change the second part of that file (any... (20 Replies)
Hi all,
I wish to know about a simple concept of mv command in UNIX. Is moving a file to a different directory takes longer than renaming it in the same direcotry using the mv command?
The scenerio is that I have to transfer a file from one directory to a location which is regularly scanned... (3 Replies)
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
Hi,
I have a large series of directories and subdirectories with many jpgs in them. I need to do two things:
1. Create a copy of each jpg found within it's own subdirectory
2. Rename this copied jpg such that apple.jpg becomes apple_m.jpg
I have tried to run the following commands in... (1 Reply)
Hey all, I really need help with some homework I'm having on UNIX. This probably sounds stupid, but I'm being asked to move a file to a specific directory and rename it a specified name in one command. I know how to do it in more than one command, I just can't seem to figure it out using only one... (1 Reply)
Discussion started by: ayylmao12
1 Replies
LEARN ABOUT OPENSOLARIS
dtappsession
dtappsession(1) User Commands dtappsession(1)NAME
dtappsession - start a new Application Manager session
SYNOPSIS
/usr/dt/bin/dtappsession [hostname]
DESCRIPTION
dtappsession is a specialized version of the Xsession shell script. It is an alternative to using the CDE remote login that allows you to
access a remote host without logging out of your current CDE session. dtappsession starts a new instance of the CDE Application Manager in
its own ToolTalkTM session. It can be used to remotely display the Application Manager back to your local display after logging in to a
remote host with the rlogin(1) command.
A new, independent instance of ttsession(1) starts a simple session management window. This window displays the title
remote_hostname: Remote Administration
where remote_hostname is the system that is being accessed. The window also displays an Exit button. Clicking Exit terminates the ToolTalk
session and all windows that are part of the session.
The Application Manager that is displayed can be used to start remote CDE actions to run in this session. Exiting the Application Manager
does not terminate the session, and it is not recommended. Clicking Exit is the recommended way to end the session. To avoid confusing the
remote CDE applications with local ones, it is recommended that a new CDE workspace be created for clients in the remote session.
The hostname is not needed when the DISPLAY environment variable is set to the local hostname on the remote host.
On a system that is configured with Trusted Extensions, dtappsession can be used for remote administration by administrative roles that
have the ability to log in to the remote host.
dtappsession does not require any privilege, and it does not need to run on a system that is configured with Trusted Extensions. When
installed in /usr/dt/bin on a Solaris system, along with the startApp.ds file, dtappsession can be used to administer the remote Solaris
system from a local system that is configured with Trusted Extensions. However, in this case, the CDE workspace that is used for remote
display must be a normal workspace, rather than a role workspace.
EXAMPLES
Example 1 Remote Login and dtappsession
After creating a new CDE workspace, type the following in a terminal window:
# rlogin remote_hostname
password: /*type the remote password*/
# dtappsession local_hostname /* on the remote host */
FILES
/usr/dt/bin/startApp.ds dt Korn shell script for session manager window
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWdttsu |
+-----------------------------+-----------------------------+
|Interface Stability |Committed |
+-----------------------------+-----------------------------+
BUGS
X11/CDE applications that do not register with the ToolTalk session manager will not exit automatically when the session is terminated.
Such applications must be explicitly terminated.
SEE ALSO dtfile(1), rlogin(1), ttsession(1), attributes(5)
Chapter 14, Remote Administration in Trusted Extensions (Tasks), in Solaris Trusted Extensions Administrator's Procedures
NOTES
The functionality described on this manual page is available only if the system is configured with Trusted Extensions.
SunOS 5.11 15 Aug 2005 dtappsession(1)