hello,
i have a problem regarding following scenario,
------------------
#!/bin/sh
read $no
output=$(/usr/local/pgsql/bin/psql -d hrcurrency -t -c "select fn_deleteradno( no)")
echo $output
-----------------
My problem is how to pass the value read from the console to the function
fn_deleteradno( no)
if i straight away give the number by hard coring it in the function, it works fine.
i have a problem regarding following scenario,
------------------
#!/bin/sh
read $no
output=$(/usr/local/pgsql/bin/psql -d hrcurrency -t -c "select fn_deleteradno( no)")
echo $output
-----------------
My problem is how to pass the value read from the console to the function
fn_deleteradno( no)
if i straight away give the number by hard coring it in the function, it works fine.
Comment