10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hi!
Iam using my D-link DNS-320 (NAS) with fun_plug installed (a unix client)
I am currently using cron to run a shellscript running a java-application that creates a couple of txt files.
These files needs to be uploaded to a specific folder on my webhosts ftp server-account.
I need a... (16 Replies)
Discussion started by: Nigge
16 Replies
2. UNIX for Dummies Questions & Answers
How to search a pattern from multiple files...
i used the command suppose the pattern name is xxx
grep xxx (file1-o- file2-o- file3)
Thanks in advance (4 Replies)
Discussion started by: ksakil
4 Replies
3. Shell Programming and Scripting
Hi,
I have been trying to run a simple script
CONFIG_FILE="/jay/check"
.
.
.
for i in `cat $CONFIG_FILE`
do
loc=`echo $i | cut -d "|" -f2`
var=$(find $loc -mtime -1|wc -l)
if then
echo $loc has files older than 1 day
fi
done
.
.
. (2 Replies)
Discussion started by: jayii
2 Replies
4. UNIX for Dummies Questions & Answers
HI
I am trying to check the status of port using command
/code:
netstat -an | grep port
/Output:
*.2009 *.* 0 0 65535 0 LISTEN
what i am trying to do is
i want to grep only status Wether the port is established/listen if so show ok else... (1 Reply)
Discussion started by: esumiba
1 Replies
5. UNIX for Dummies Questions & Answers
Hi
I am automating my few commands out of which one command is
tail -f running.logs
when i run this command it does not automatically exit and show prompt (#)
what would i do so that it will exit out automatically after few seconds and move to the next command without using
... (4 Replies)
Discussion started by: esumiba
4 Replies
6. UNIX for Dummies Questions & Answers
Hi
i am using expect module and trying to login using following code.
ssh 127.0.0.1
expect "word:"
send "$password \n"
kindly let me know the login script using expect module (1 Reply)
Discussion started by: esumiba
1 Replies
7. Shell Programming and Scripting
Hi, i have a problem with sed
i want to substitude a / to ",""," in the following pattern: number/number
so if u have a file which contains -> "Streetname 9/8/6" it shouldn't substitude anything, only if it is "Streetname 9/6" to "Streetname 9","","6".
Maybe you can help me, i try so many... (5 Replies)
Discussion started by: urukai
5 Replies
8. UNIX for Advanced & Expert Users
hI,
Pls consider the following shell script
#!/bin/csh -f
sqlplus tkyte/tkyte <<"EOF" > tmp.csh
set serveroutput on
declare
a number:=5;
begin
dbms_output.put_line( 'a:='||a );
end;
/
spool off
"EOF"
The above script does the followin
1)it connects... (1 Reply)
Discussion started by: ravi raj kumar
1 Replies
9. UNIX for Dummies Questions & Answers
Hi all,
Could someone please explain to me the shell invocation process when running a script. How do I stop the shell from logging out when it reaches an exit statement in the script?
if ; then
echo 'Failed to copy ${FILE}.fmx to ${J2_HOME}/dev/rsc'
... (3 Replies)
Discussion started by: richgi
3 Replies
10. UNIX for Advanced & Expert Users
Can I do something like this from a shellscript ?:
ftp 12.34.56.78 <<!
username
password
put a.c
bye
!
It does not go through as the login fails.
Is there any alternative to do the above requirement?
Thanks in advance.
Gowrish (3 Replies)
Discussion started by: ggowrish
3 Replies