It is not possible to post suitable unix Script solution based the detail you have posted. We have no idea what "Screen" is or any details about your computer hardware or its Operating System or the modem. Any modem commands would have to be sent to a modem port on your computer.
The Minicom for Linux program is interesting, but still ancient technology. What real-world problem are you trying to solve?
Still suggest that you contact the authors of the software for advice. If you have trouble with scripting the solution please post as much detail as you can complete with lots and lots of detail and examples.
Afterthought:
Quote:
but i don't have Minicom on my embedded board
If the O/P does not have modem software is is easy to write AT commands directly to the modem port. We'd need to know the Linux name for the modem port /dev/.... and what Operating System and Shell the O/P has. The process writing to the modem must not add extra characters, so we need to avoid sending a line terminator.
Last edited by methyl; 03-27-2012 at 07:09 PM..
Reason: afterthought. O/P may not have Minicom software?
Hi,
on my board i have only u-boot, kernel and rootfs! I haven't a Gui interface..
The modem is the SL8092 which is connected to the card via USB port /dev/ttyUSB3.
Screen is a program like minicom.
I have write this script on my PC with UBUNTU 11.10 and modem plugged:
modem.sh:
but when i run sh modem.sh:
I not have answers.
Should look OK!!!!!!!!!!!!
thanks
regards
Last edited by enaud; 03-28-2012 at 07:57 AM..
Reason: Please use code tags for code and data samples, thank you
Hello i am having an issue with bash script and this is the code
now=$(cat hosts1.txt | awk '{print $2;}')
while read n ;do
ssh root@$now 'useradd test1; echo -e "test1\ntest1" | passwd test1 && echo "test1 ALL=(ALL:ALL) ALL" >> /etc/sudoers'
When i execute only part with cat, it... (8 Replies)
Hi everyone
I have a problem with my script
If I try directly this command
/usr/bin/nice -n 19 mysqldump -u root --password="******" wiki_schneider -c | nice -n 19 gzip -9 > /point_de_montage/$(date '+%Y%m%d')-wiki-db.sql.gz
It works
But if I simply add this command in a script and... (8 Replies)
Hi Guys,
I like to output every command executed in the script to a file.
I have tried set -x which does the same.
But it is not giving the logs of the child script which is being called from my script.
Is there any parameters in the Set command or someother way where i can see the log... (2 Replies)
Hi All,
I have a question related to Shell scripting. In my shell script, I have following two commands in sequence:
sed 's/^/grep "^120" /g' $ORIGCHARGEDAMTLIST|sed "s;$;| cut -f$FIELD_NO1 -d '|' | awk '{ sum+=\$1} END {printf (\"%0.2f\\\n\", sum/100)}' >$TEMPFILE
mv $TEMPFILE $ORIGFILE... (3 Replies)
Input is list of Server's, script is basically to remove old_rootvg, So it should check first command "alt_rootvg_op -X old_rootvg" if it passes move to next server and starts check and if it fails moves to other command "exportvg old_rootvg" for only that particular server. I came up with below,... (6 Replies)
I am working with a sh script on a solaris 9 zone (sol 10 host) that grabs information to build the configuration command line. the variables Build64, SSLopt, CONFIGopt, and CC are populated in the script. the script includes
CC=`which gcc`
CONFIGopt=' --prefix=/ --exec-prefix=/usr... (8 Replies)
I am running the export command within a view to use that value inside my build script. But while executing it it is saying "export command not found"
My code is as follows:
--------------------------
#!/bin/sh
user="test"
DIR="/bldtmp/"$user
VIEW="test.view1"
echo "TMPDIR before export... (4 Replies)
Hi everyone,
when executing this command in unix:
echo "WM7 Fatal Alerts:", $(cat query1.txt) > a.csvIt works fine, but running this command in a shell script gives an error saying that there's a syntax error.
here is content of my script:
tdbsrvr$ vi hc.sh
"hc.sh" 22 lines, 509... (4 Replies)
i want to search in the current directory all the files that contain one word for example "hello"
i want to achieve it with the grep command but not with the grep * (2 Replies)