Urgent!! Bash - problem using CD with variable

I am extracting directory path from file which is stored in a variable.

while read inputline
do
script_name=`echo $inputline | cut -d' ' -f2`
cd $script_name
done < path_scripts.txt

where as path_scripts contains

input_process.bash ~/jobs/process/input/bin

The script output says no directory present
script1.sh: cd: ~/jobs/process/input/bin: No such file or directory

This is valid directory path but still i get the error. Could you please let me know why? how to fix this?

Try this:

while read field_one field_two
do
ls -ld $field_two
script_name=$field_two
cd $script_name                    ## this is silly. just use $field_two to cd
done < path_scripts.txt

If the ls -ld command returns "No such file or directory" (or some such), then that directory is not present.