I don't think your proposed redirection will work "$s1.txt" will be interpreted by shell before doing the read and this will just resulted in ".txt". Here is my little test.
I am creating a package(Solaris10 on sparc) that needs user input.
As I understand it, I need to use a request script.
My problem is that the value I set in my request script is not visible in my postinstall script. Not sure if I am doing it right.
Here is an example request script... (4 Replies)
Hi,
In the request script I need to read user input and store to variable to use it later in postinstall script.
e.g.
LOGDIR=/app/log
echo "Please type the Log Directory : (current value: $LOGDIR)"
read LOGDIR
When asked, if the user enters a value the parameter is ok and I... (2 Replies)
#!/bin/sh
# 'clear'
for i in $(seq -w 15 37)
do
echo $i
echo The content in Z
Z=`wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp`
echo $Z
A="Connection timed out."
echo The content in A
echo $A
expr "$A" : '..\(...\)'
echo $A
done
... (3 Replies)
Hi all,
Im trying to make an http get request to a web service from a linux machine like below and i get ERROR 500
wget http://10.1.21.236:8585/pns.asmx/Sen...&msgBody=werty
25018
$ --19:06:32-- http://10.1.21.236:8585/pns.asmx/Sen...erName=serverA
Connecting to 10.1.21.236:8585...... (1 Reply)
I've a master file which will contain 100 file names, The script should read file name from a master file and format the file as below in AIX.
input file
Filename
This
is
a
test
file
Output File
Filename|This is a test file
Thanks in advance
for file in $FileList; do (5 Replies)
The input file contains 4 bytes per row
1 2 3 4
5 6 7 8
9 10 11 12
* * * 108
1 2 3 4
5 6 7 8
9 10 11 12
* * * 108
I need to put them in a horizontal manner and this need to repeat after every 108 lines lso the output comes as
1 2 3 4 5 6 7 8 9 10 11 12 ..... 108
1 2... (4 Replies)
Hi,
I need to download a zip file from my the below US govt link.
https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP
I only have wget utility installed on the server.
When I use the below command, I am getting error 403... (2 Replies)
Hello;
I'm having about 800 log files and i'm trying to write a script that report the counts of lines per second or "requests per second" in each log file and report the output which includes the timestamp for the highest lines per second count and the log file name and the highest number per... (5 Replies)
Hi
I have a proxy configured on my ubuntu o.s. running on vmware player, but when trying to wgetDownload Nagios Core from SourceForge.net, I have the following error:
failed: Connection refused
I have check on the web, they ask me to run sudo ufw status, but the output is enabled, so what... (0 Replies)
Discussion started by: fretagi
0 Replies
LEARN ABOUT ULTRIX
rmdir
rmdir(2) System Calls Manual rmdir(2)Name
rmdir - remove a directory file
Syntax
rmdir(path)
char *path;
Description
The system call removes a directory file whose name is given by path. The directory must not have any entries other than dot (.) and dot-
dot (..).
If one or more processes have the directory open when the last link is removed, the dot and dot-dot entries, if present, are removed before
returns and no new entries may be created in the directory. The directory, however, is not removed until all references to the directory
have been closed.
Return Values
A zero (0) is returned if the remove succeeds; otherwise, a -1 is returned, and an error code is stored in the global location errno.
Diagnostics
The named file is removed unless one or more of the following are true:
[ENOTEMPTY] The named directory contains files other than dot and dot-dot.
[EPERM] The directory containing the directory to be removed is marked sticky, and neither the containing directory nor the direc-
tory to be removed are owned by the effective user ID.
[ENOTDIR] A component of the path is not a directory.
[ENOENT] The named directory does not exist or path points to an empty string and the environment defined is POSIX or SYSTEM_FIVE.
[EACCES] Search permission is denied for a component of the path prefix.
[EACCES] Write permission is denied on the directory containing the link to be removed.
[EBUSY] The directory to be removed is the mount point for a mounted file system.
[EROFS] The directory entry to be removed resides on a read-only file system.
[EFAULT] The path points outside the process's allocated address space.
[ELOOP] Too many symbolic links were encountered in translating the pathname.
[ENAMETOOLONG] A component of a pathname exceeded 255 characters, or an entire pathname exceeded 1023 characters.
[EIO] An I/O error occurred while deleting the directory entry or deallocating the inode.
[ETIMEDOUT] A connect request or remote file operation failed because the connected party did not properly respond after a period of
time that is dependent on the communications protocol.
See Alsomkdir(2), unlink(2)rmdir(2)