- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- starting a script
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 03:48 AM
04-10-2003 03:48 AM
i'd like to ask for help in the following matter:
i have a script that contains several standard commands. among them there is a command that is supposed to start another script - it is just a name of the script that is to be initialized, actually. but it doesn't work this way.
how to make it work?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 03:51 AM
04-10-2003 03:51 AM
Re: starting a script
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 03:51 AM
04-10-2003 03:51 AM
Re: starting a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 03:54 AM
04-10-2003 03:54 AM
Re: starting a script
1.Execute permissions of the script
2.Provide the full path of the script.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:00 AM
04-10-2003 04:00 AM
Re: starting a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:04 AM
04-10-2003 04:04 AM
Re: starting a script
can you post the scripts or part of them?
caller and callee
You may wish to trace it using "echo" messages at specific parts in the code.
thanks
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:05 AM
04-10-2003 04:05 AM
Re: starting a script
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:10 AM
04-10-2003 04:10 AM
Re: starting a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:15 AM
04-10-2003 04:15 AM
Re: starting a script
set -x
to hte beginning of the script and then watch the output.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:18 AM
04-10-2003 04:18 AM
Re: starting a script
$ man put
No manual entry for put.
$ man lcd
No manual entry for lcd.
$ man mget
No manual entry for mget.
Maybe some sort of ftp script, I guess? How is it invoked?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:19 AM
04-10-2003 04:19 AM
Re: starting a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:21 AM
04-10-2003 04:21 AM
Re: starting a script
sh -x scriptname
You will the script executing every command.
DR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:23 AM
04-10-2003 04:23 AM
Re: starting a script
ftp
so the commands are carried out by remote host
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:24 AM
04-10-2003 04:24 AM
Re: starting a script
This is a "debugging-tool". After this command is executed, all further commands will be
printed to the terminal before they are executed until a 'set +x'
command is found.
regards
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:30 AM
04-10-2003 04:30 AM
Re: starting a script
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:30 AM
04-10-2003 04:30 AM
Re: starting a script
in which line of the script command set -x should be placed?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:34 AM
04-10-2003 04:34 AM
Solutionif you can't mix ftp commands with shell commands!
this should provide you with some hints:
...
for i in `cat ftp.list`; do
echo "put $i"|ftp serverB
file=`basename $i .txt`
mv $i $FTP_ARCH/
done
...
hth
Yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:34 AM
04-10-2003 04:34 AM
Re: starting a script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:36 AM
04-10-2003 04:36 AM
Re: starting a script
you stop with a "set +x"
hth
yogeeraj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:38 AM
04-10-2003 04:38 AM
Re: starting a script
I'm assuming this is the command thats not working:
/usr/local/home/rainbow/archiwum/temp_arch/rem_arch
If this is on the local host (the host where ftp is being run from) then you could just add an exclamation mark at the start to run it in a shell:
!/usr/local/home/rainbow/archiwum/temp_arch/rem_arch
If this command is actually on the remote host ( the one you are ftp'ing to) then there is *no way* to run it from within ftp as it doesn't allow you to run code on the remote end.
HTH
Duncan
I am an HPE Employee

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:39 AM
04-10-2003 04:39 AM
Re: starting a script
Pere
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:39 AM
04-10-2003 04:39 AM
Re: starting a script
till the next one.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:41 AM
04-10-2003 04:41 AM
Re: starting a script
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:41 AM
04-10-2003 04:41 AM
Re: starting a script
Sorry to be the bearer of bad news, but you can't run shell scripts on the remote system via ftp.
The script you have supplied is a list of ftp commands and will be executed within ftp.
If you need to run the shell script on the remote system you'll need to use remsh or something similar.
regards,
Darren.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2003 04:47 AM
04-10-2003 04:47 AM
Re: starting a script
For running remote commands, you may consider following command will return immediately without waiting for the remote command to complete:
remsh otherhost -n "command 1>&- 2>&- &"
hth
yogeeraj