Hello guys, I have been able to open the command prompt (actually COMMAND.COM) from a shell script.
I have used the following piece of code. It is quite amazing, but it does open command.com. To say frankly I don't know how it works. Perhaps you guys do know it.
As you can see I had to copy COMMAND.COM in the C: directory because when calling it from its original location C:\WINDOWS\system32\COMMAND.COM I get an error message "Access denied". Do you guys have an idea why this is so?
The problem I'm having now is that I am not able to pass a file (+ an argument) as parameter. Error: Too many parameters.
user click button --> file download happens --> file downloaded to user desktop
1) where is the button available ? ( is it a web page ? -- hosted in unix machine ? )
2) Is file download should happen from unix machine ?
3) User is on the windows machine ?
1) Yes the application is hosted on a Unix machine. The interface is DOS-like. When user presses function key F11, file should be downloaded.
2) Yes the file should be downloaded from the Unix machine onto the user Windows machine, in a specific directory.
3) Yes the user has a Windows machine
Seriously? You're logged into a Unix server, and some echo command opens a command prompt on your windows machine. I'd like more information.
The only way to get a file from Unix to windows is to use one of the available protocols. You need to pick one of these, for example:
ftp
ssh/sftp/scp
samba/smb
Those are protocols that will transfer files between computers.
I can't help but think you are way off base on finding a solution.
Please pick a protocol and post your Unix program. Then we should be able to help.
Yes it does open the command prompt. As I said it is like magical. I don't know how it works, I have used some existing piece of code and it does the trick. But now I have to pass a file as parameter but it is not working?
Most probably the magic lies within the "^[[17x" part. But sincerely I don't know how it actually works.
Below is part of the piece of code, showing what I am trying to do.
Firstly I'm echoing some commands in a text file and then transfer that file on my local pc using kermit.
Secondly, I am supposed to call command.com with a file parameter so as to do some deletion in a specific directory. (not working presently since it is not accepting the file as a parameter)
Lastly, use winscp.com to download the file from Unix onto my Windows machine.
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Hi all,
I wish to know whether Unix can access window's file in Unix's terminal?
Apart from that, how to copy files or share files between Window and Unix? I get to know of secure copy, however, my company's Unix does not support the feature of secure copy? Any other method for me to share/... (5 Replies)
I am new to to unix and I want to make my own basic shell. What is the code I can use to change the unix cmd console display? For example my unix display prompt says MyCompterName~, I want it to say WhatEverMan~ (3 Replies)
Hello,
Can any one please help:
I have a lab design on Visio, with routers and switches.
What I am planning to do is: when I double click a device icon - it should open a new cmd prompt window and automatically performs the telnet session and log's me into the device.
Appreciate your... (0 Replies)
Can anybody help me with this small script , the script works fine and launches the IE from
c:\documents and settings \test\my documents>ksh prompt
$RunURL1.sh
this scitpt works and launches the ie from ksh , but when i schedule it to run the script then i get the error box saying command:1... (2 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
How do I create a shell script called 'custinfo' to prompt a customer to enter and display back the following:... (4 Replies)
Hi,
I am using SunOS
I want to serch my previous command
from unix prompt
(like on AIX we can search by ESC -k)
how to get in SunOs
urgent help require. (10 Replies)
hi
i have file extentioned with test.vbs. i am able to run this file n execute through command promt but i dont know how to run in shell script
example:
file name is test.vbs which contains
strSoundFile = "C:\windows\Media\Notify.wav"
Set objShell = CreateObject("Wscript.Shell")
strCommand... (5 Replies)
hi ,
how do i interact with the shell prompt.
i need no. of args to be dynamic
e.g
$> type the no of args: <input from keyboard>
Enter the 1 st arg : <input from keyboard>
Enter the 2nd arg : <input from keyboard>
.........
.........
let me know how to do it ... (1 Reply)