.rsc script vs .bat script

hello everybody
in windows i can make a batch file with name
check.bat

ping 127.127.127.127

and every time i want to execute, i can just type check.bat or check
now i made the similar script check.rsc and upload it via ftp

ping 127.127.127.127

and type check.rsc but it won’t execute and if type /import check.rsc then it executes
can’t i just type the filename check.rsc and execute it as with the batch files of windows instead of /import
Thankyou
sanjeev

rsc is not a script, it’s for importing commands. use the “system script” menu to do what you intended.

Thankyou Normis.
That really help me.
Thanks once again.

hi normis
okay i added a new script check on system script.
the script contained the following code

ping xxx.xxx.yyy.zzz

now i went to /system script from terminal and typed “run check” (without quotes)
but i didn’t see any output.
am i missing something?
i hope script gurus will show me the way.
Thankyou verymuch
sanjeev

For example to send 5 pings

/ping 1.1.1.1 count=5

Hi mrz thanks for the reply
okay here’s what i did i added a script with name check

/ping 127.0.0.1 count=5

now i went into terminal and run the script
and the output was this.

[admin@mybox] system script> run check

[admin@mybox] system script>

IMHO the output should have been like this..

[admin@mybox] system script> run check
127.0.0.1 64 byte ping: ttl=64 time=7 ms
127.0.0.1 64 byte ping: ttl=64 time=6 ms
127.0.0.1 64 byte ping: ttl=64 time=6 ms
127.0.0.1 64 byte ping: ttl=64 time=6 ms
127.0.0.1 64 byte ping: ttl=64 time=3 ms
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 3/5.6/7 ms
[admin@mybox] system script>

i hope you guys understood me.
Thankyou very much
sanjeev

on 3.22 the result is as follows:

admin@MikroTik] /system script> run script4
1.0.0.1 64 byte ping: ttl=64 time<1 ms
1.0.0.1 64 byte ping: ttl=64 time<1 ms
1.0.0.1 64 byte ping: ttl=64 time<1 ms
1.0.0.1 64 byte ping: ttl=64 time<1 ms
1.0.0.1 64 byte ping: ttl=64 time<1 ms
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max = 0/0.0/0 ms
[admin@MikroTik] /system script> print where name=script4
Flags: I - invalid
 0   name="script4" owner="admin" policy=ftp,reboot,read,write,policy,test,winbox,password,sniff last-started=mar/30/2009 15:45:16
     run-count=2 source=/ping 1.0.0.1 count=5

Thankyou janisk now i caught my mistake
I was trying on Router board 111/112 CPE.
I tried it on ROS 3.17 and it worked like charm.
Thankyou everyone
and special thanks to janisk if he would not have replied to my post i would have never known this fact.
Thanks once again
Sanjeev