1753756 Members
4861 Online
108799 Solutions
New Discussion юеВ

SRM script

 
SOLVED
Go to solution
Ivan Ferreira
Honored Contributor

SRM script

I want to create a script in SRM (alpha console) that runs a series of commands. I tried with:

echo "command" > script
echo "command" >> script

The file is created but after INIT the file is gone.

Is there a way to create permanent scripts in the SRM console?.
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
2 REPLIES 2
Muthukumar_5
Honored Contributor

Re: SRM script

Can you try as,

echo "command" > /script.log
echo "command" >> /script.log

Is it working? May be creation in /tmp will delete files?

--
Muthu
Easy to suggest when don't know about the problem!
Kasper Hedensted
Trusted Contributor
Solution

Re: SRM script

Hi Ivan,

I think that you can add new commands to the nvram script, but I haven't actual tried this myself.

Take a look at current content:
>>> cat nvram

And edit it:
>>> edit nvram

Cheers,
Kasper