How can I upload CMD scripts, rather than typing them in through the console?
I’m using RB450 and RB450Gs if that matters.
Thanks,
Wes
How can I upload CMD scripts, rather than typing them in through the console?
I’m using RB450 and RB450Gs if that matters.
Thanks,
Wes
put the code in a *.rsc file.
then upload it to the router and type in terminal: import myfile.rsc
or create it in /system scripts
yes you can use a recombination of the HTTP get import and if really required ssh environments.
You can use SSH to send an terminal command to the Routerboard without having to log into the routerboard each time
I use Putty to achieve this and by creating a command line for putty to pass to the Routerboard in the command file you can do an file that grabs an .rcs file of an HTTP
You can then in one of 2 ways import it
1 By having a second command that you send via ssh to run the downloaded rcs
2 By having a script check every 5 mins for update.rcs and if found then running that.
Depepnds on your requirements then i can assist you with how you can do all of these things, i spend a while on google to figure all these out.
Uploading via FTP a file called .auto.rsc it will autoexecute itself before upload is completed.
hi
we tested the .auto.rsc file and it does not run automatically on the rb
can you give a example of a script that will be fetched from the ftp and run auto on the rb and then be deleted
not fetched, but uploaded via FTP
Hey guys. Sorry to necro but I figured I’d rather bump a thread that start a whole new one.
Anyhow I’m a fairly new RouterOS user, running 6.7 on a CRS125, and from this thread I really can’t tell how the heck to upload a script I’ve been working on. My CRS125 doesn’t seem to have FTP working. I see in IP → services that FTP is enabled, but I can’t browse to ftp://<my_router>.
Furthermore I don’t see how I could create dirs to upload into via ftp and don’t see any folders other than “skins” in the stores area.
Thanks!
Hello,
you can enter with winbox and drag & drop files or any directory that you want to upload to /FILES.
If ip/services shows you that FTP is open, perhaps you have a firewall rule in ip/firewall.
Try to enter with winscp using SSH port. The use it’s same as FTP but using port of ssh.