8 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I have been given a scripting project, but have not learned any scripting. I need to get some ideas on how to start. Attached is part of the project:
I have no idea how to parse the arguments. What I had in mind was to get the arguments ($1, $2, ... ) and have if statements for different... (1 Reply)
Discussion started by: facepalm
1 Replies
2. Shell Programming and Scripting
idealy, i'd like to do something like this:
while read line
do
echo $line
done < $(egrep error /var/log/syslog)
but when i do, i get an unexpected response. i.e.
cat test:
#!/bin/sh
while read line
do
echo $line
done < $(egrep error /var/log/syslog) (12 Replies)
Discussion started by: SkySmart
12 Replies
3. UNIX and Linux Applications
Dear all,
i am in last year of electronics department in engineering faculty
i need suggestions for a graduation project based on unix or free bsd or linux and electronics "embedded linux "
i think about embedded unix for example or device drivers
please i need helps (1 Reply)
Discussion started by: MOHA-1
1 Replies
4. UNIX for Advanced & Expert Users
I have solaris 9 and am using sendmail to pickup requests and forward them to a bulk mail server on a different port. Now for the fun...In sendmail, I need to find a way to place a default address in the Mail From: and Rcpt To: or remove them as required - These will be picked up by the bulk mail... (3 Replies)
Discussion started by: mikey2003ma
3 Replies
5. Shell Programming and Scripting
i need to compare to dates/times given in the format MMDDhhmmYY. That is month, day, hour, minute, year. It is a 24 hour clock. I need to compare two dates to check that they are, say, less than 900 seconds apart. I have got to a point where it checks the time, turns the values into seconds and... (5 Replies)
Discussion started by: fwabbly
5 Replies
6. Shell Programming and Scripting
I understand the code in the following may not be perfect, but I'll work that out. I'm more looking for ideas on how to do what I need more efficiently.
I have log files that are archived each day so today's log is called nmslog, yesterday's is nmslog.1.gz, 2 days ago nmslog.2.gz, etc. I want... (4 Replies)
Discussion started by: earnstaf
4 Replies
7. Cybersecurity
Hi,
I installed sybase server on a LINUX server. I assigen port 2025 whilst installation for sybase , later i uninstalled sybase and when i try to reinstall sybase and use port 2025 it throw up error saying that it is already in use, use other port number. How can I re-use the same port number... (2 Replies)
Discussion started by: suda
2 Replies
8. Shell Programming and Scripting
I have several staging directories on my UNIX server.
/usr2/data1
/usr2/data2
/usr2/data3
/usr2/data4
/usr2/data5
/usr2/data6
In these directories a file is transferred from different PC's connected to the network via TCP/IP. The File name is constant for all directories.
Transfers... (1 Reply)
Discussion started by: Docboyeee
1 Replies