Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Hello I am trying to upload and download files from my desktop to my server. Now after some search I did download psftp. I used to use filezilla earlier, but I cannot install it on my desktop due to a few reasons. Since psftp (similar to putty) is just an executable for file transfer.
So now after going through this link http://www.math.tamu.edu/~mpilant/math696/psftp.html. I understood that put and get are two commands I would use to download and upload files. Now when I logon to the server and say get filename, it actually is throwing back an error
"local: unable to open filename". I tried that with other files too, and I end up getting the same error.
Am I making a mistake or is it a problem with this executable?
I did not find relevant tags for this topic, could somebody suggest me the right forum for this issue.
if you're starting psftp by double-clicking the .exe, it will have a local working directory of whatever folder/directory you'd started it in. Unless the file you're uploading is also in there, you'll have to use lcd (local change directory) to switch to that other directory:
c:\this\and\that\psftp.exe <---working directory of c:\this\and\that
c:\upload\file\is\here\file.txt <--where you keep the file to upload
c:\this\and\that> psftp
psftp> lcd \upload\file\is\here
psftp> put file.txt
should do the trick.
Alright sorry for troubling you guys, my folder was locked down, so I did not have write access to the destination folder.
It looks like you might be trying to fetch (non-existent) local files. Posting the full trace of the session might help.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 4 years ago.
Improve this question
I saw questions of this for other types of files but not batch. I don't know much about code, but I have an idea.
Open up the link in Microsoft Edge (because it's already logged into the website), and download it from there. I don't know how to make the batch file to OPEN and DOWNLOAD using Microsoft Edge though. Is this possible?
To open, I think it's this:
start microsoft-edge:http://www.cnn.com
How do I download it after opening Edge?
Not exactly batch file, but using tools that are already part of Windows, you can fetch web content with Powershell, which according to the article, can simulate the Unix curl command.
Another way, if you absolutely insist on using batch, is to install the curl command and then use the answers here to help you get further, using cookies to keep track of the login between multiple invocations of curl.
Basic usage is easy, but maybe you need a curl tutorial to help you do this.
There is another tool called wget that has similar functionality and may be a better or easier method for you. Mileage may vary.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
Questions concerning problems with code you've written must describe the specific problem — and include valid code to reproduce it — in the question itself. See SSCCE.org for guidance.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Improve this question
I have a Minecraft server; When you run the server for the first time, it starts generating the world you are going to play on in the folder where you have the Minecraft_server.exe (This is normal behavior.)
I made a batch to open the Minecraft_server.exe. But when I place the .bat on my desktop and run it, it starts creating new server files instead of starting the program in the original folder where the existing world is.
How can I launch the bat anywhere on the PC, such that it wont generate new folders? I want it to always start in the Minecraft server folder.
You must first switch to proper drive and then using cd command switch to Minecraft server folder. Then you can run .exe with absolute path (if it is not in Minecraft server folder).
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I feel like this is a simple enough question that it should have already been asked and answered, but I have not seen anything on it in my searches.
I am creating a website for my club at school, and need to publish it/make it live/public, whatever you want to call it. Thusfar it is a simple HMTL-only document, but once I get it up and running I will expand it with CSS and Javascript (as I learn them, haha). So how do I turn this HTML file into a real website? Here is some key info:
The HMTL code is sitting on my desktop in a file (blablabla.html)
I have server space allocated for me, provided by the school. No need to find a domain.
I am familiar with using ssh to visit said server, and I have successively used scp to upload my html file to the server address, but when I navigate to the webpage though Chrome, I get an Object Not Found/404 error.
I'd like to do this the old fashioned way for now, but if there are any reccomendations for web publishing suites on Ubuntu, they are welcome.
So what exactly do I need to do to make it a working webpage? Is there a specific place I need to put the .html file, a specific name it must have? What am I missing?
P.S. For once I do get it working, how do I obtain/upload some MIDI music to give my website that good old fashioned early 90s feel?
yes, try to rename it to index.html if that file is you home page.
At what URL are you trying to reach your website? http://example.com/mysite/ ??? or maybe http://example.com/mysite/blahblah.html ??
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
hi all I am new to apache2 and i have installed apache2 on my ubuntu machine and edited apache2.conf file wrongly. and when i am trying to start it I am getting an error message like this:
Starting web server apache2
apache2: Syntax error on line 236 of /etc/apache2/apache2.conf:
Syntax error on line 2 of /etc/apache2/sites-enabled/mysiteM-D:
</VirtualHost without matching <VirtualHost section
[fail]**
what should i do?
Did you keep a copy of the files before you began editing them? If not, then make a note to always keep a copy. You should be able to go and download clean copies. So one approach is to go bakc to clean install.
Another approach is to study the error message. Something is wrong on line 236. Is that a line you changed? Compare it with examples you find on net, study the documentation figure to figure out jow to fix it.
It looks like actually that its your entry in sites-enabled directory that's the problem. Is that the file referenced in line 236? Compare this site file with other site files, try and spot the problem.
You are actually safe because in the original folder there is a copy so just open it and copy all and paste in the one you messed up which is in the conf folder!
If you still have this problem can you please paste line 235 here and I can figure it out.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a directory on a Windows machine with a large number of files and folders that I need to watch and have the files mirrored/synced instantly (or as near to as possible), to a Linux machine over the local network.
I've investigated:
- Rsync, not realtime enough
- WinSCP 'Keep directories up to date' feature, which was OK but limited to 500 directories and the performance was pretty slow.
There are a bunch of results of shareware-style apps that claim to do this, but they are all pretty dubious looking. It seems there must be a good FOSS solution somewhere?
UPDATE: I'd be happy with a one-way transfer rather than a full sync, as long as it's instant and automatic.
I second eneset's proposal of the Unison software. Also if you care of looking for some alternatives Lifehacker has an interesting article on this subject http://lifehacker.com/372175/free-ways-to-synchronize-folders-between-computers
titel
It seems that what you want is to actually deal with the files on the linux server as if they were local files on your computer.
Did you consider looking for a tool to mount a remote ssh folder as a local drive?
Have a look at Unison (http://www.cis.upenn.edu/~bcpierce/unison/). I successfully used it for Linux/Windows home directory mirroring.
Have you considered using Samba? It will let you mount windows shares under linux as well as accessing linux directorys from windows if you set them up as shares.