hi Team,
Im trying create a csh script. requirement: when i script runs it asks for user input. prompt should wait for 10secs. if not then exit the script. i have solution for bash script where i can use read -t 10 username. but i want same in csh ``` #!/bin/csh echo -n "username:" set req = $< echo "username is $req" sed -i.bak "/rootpw/s/edjos/$req/" /boot/loader.conf ``` and for advance level, the message should look like "prompts end in 10(this number should decrease and lively should visible the timeout secs)" _______________________________________________ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss