I have to display the file name followed by the line count then work count. I am able to display it in the opposite order, but can figure out how to switch it.
Can anyone help me with this it would be greatly appreciated.
I'm having a little trouble finishing up this script any help would be great.
My system is SCO OpenServer Enterprise System (ver 5.0.5m) and i'm using sh
This script checks todays date and goes and downloads a file with yesterdays date in the name.
---start----
Server="ipaddresshere"... (4 Replies)
HI admin unix,
I'm from indonesia that currently work as system admin for server under AIX/UNIX environment.
I have some trouble when running script as follow :
##
vdate()
{
sqlplus -s ${MMUSER}/${PASSWORD} <<-eot|grep -v '^$'
set heading off feedback off
select... (2 Replies)
i'm new to scripting in unix and am trying to make a script to add a user and an encrypted password for them. this is what i have and it isn't giving me any errors, but when i try to login with the new user, the password doesn't work. i'm hoping someone can point me in the right direction
... (1 Reply)
I have a script where a user provides a date, start time and end time. The script will take these values and scan a log file to search for key words in the log file that fall within the time range. When a user uses AM times (Example: 700 to 900 - this is 7am to 9am) as a range or PM times... (7 Replies)
Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted!
1. The problem statement, all variables and given/known data:
Hi I am new to unix and need some help, the main reason I am here is because i need basic unix knowledge
The... (2 Replies)
I am using a line of code that I borrowed from someone else's script, in a script to monitor changes in my local network. It works but it takes too long to pick up the changes.
snmpwalk -v 2c -c PASSWORD -Oq 10.0.1.1 RFC1213-MIB::atPhysAddress
The snmp server is my apple router. If I monitor... (7 Replies)
Hi guys
First thing to say is that I am entirely new to Shell Scripting and am trying to write a script to do something I thought would be relatively simple, but has escaped me.
Essentially, I want to take file name information from a list, find the files listed and then copy the results into... (0 Replies)
I am having problem looping this script
I want to give the user option to decide if they want to continue after each entry but then also loop it back to beginning so they can more to content of there testcase they just created. I fam new to scripting so loops are little tricky for me.
code I... (7 Replies)
Hello Friends
I am having trouble with my script below. I will describe the problems below the code box. I am hoping that some of the experts here can help me.
#!/bin/bash
#=========================================================================================================
# Rsync File... (8 Replies)
I am still learning expect, For the below script I always get This is True as the answer. Tried to debug and does not make sense to me. Not sure, where I am doing the mistake. Need Help! - Thanks
#!/usr/bin/expect -f
set timeout 10
spawn -noecho bash
expect { *$* }
send "test -d... (3 Replies)
Discussion started by: rmsagar
3 Replies
LEARN ABOUT HPUX
funlockfile
flockfile(3S)flockfile(3S)NAME
flockfile(), ftrylockfile(), funlockfile() - explicit locking of streams within a multithread application
SYNOPSIS DESCRIPTION
The and functions provide for explicit application-level locking of streams. These functions can be used by a thread to delineate a
sequence of I/O statements that are to be executed as a unit.
The function is used by a thread to acquire ownership of a object.
The function is used by a thread to acquire ownership of a object if the object is available; is a non-blocking version of
The function is used to relinquish the ownership granted to the thread. The behavior is undefined if a thread other than the current owner
calls the function.
Logically, there is a count associated with each stream. This count is implicitly initialized to zero when the stream is created. The
stream is unlocked when the count is zero. When the count is positive, a single thread owns the stream. When the function is called, if
the count is zero or if the count is positive and the caller owns the stream, the count is incremented. Otherwise, the calling thread is
suspended, waiting for the count to return to zero. Each call to decrements the count. This allows matching calls to (or successful calls
to and to be nested.
All POSIX.1 and C standard functions that reference objects behave as if they use and internally to obtain ownership of these objects.
RETURN VALUE
None for and The function returns zero for success and nonzero to indicate that the lock cannot be acquired.
flockfile(3S)