excellent!. it works. thanks a lot
On Mon, Mar 8, 2021 at 4:56 PM Richard L. Hamilton
wrote:
>
>
> > On Mar 8, 2021, at 06:11, Thebest videos
> wrote:
> >
> > great! that works. but i have another problem. i'm using prompt in
> secured
> > way as "read -s -t 10" but I need to store the output
> On Mar 8, 2021, at 06:11, Thebest videos wrote:
>
> great! that works. but i have another problem. i'm using prompt in secured
> way as "read -s -t 10" but I need to store the output in one variable. as
> below. but nothing is storing in $req variable
>
> #!/bin/csh
>
> set pass=`cat file
great! that works. but i have another problem. i'm using prompt in secured
way as "read -s -t 10" but I need to store the output in one variable. as
below. but nothing is storing in $req variable
#!/bin/csh
set pass=`cat file | grep rootpw | grep -o '".*"' | sed 's/"//g'`
if ( "$pass" ==
If it has to be pure csh (without any helpers), you're probably out of luck,
because csh is crippled when it comes to scripting.
You could probably use a command substitution on a one-liner of your bash from
the csh script:
#! /bin/csh
set myvar=`bash -c 'read -t 10 ;echo "${REPLY}"'`
echo
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 = $<