10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I was wondering if I could get some feedback on my script to grab time from our MDM... I blocked out all of the important stuff. I really appreciate any guidance, since I am long out of practice.
#!/bin/bash
serial=$1
# get last seen value of ipad
lastseen=$(curl -s -X "GET"... (11 Replies)
Discussion started by: andysensible
11 Replies
2. War Stories
Hello All,
Finally I am posting an issue and it's solution which I faced last week. Let me explain it by headings.
Issue's background: It was a nice Tuesday for me, went to office as usual started checking emails and work assigned to me. Suddenly a gentleman reached out to me on my desk(in a... (2 Replies)
Discussion started by: RavinderSingh13
2 Replies
3. Shell Programming and Scripting
Hi,
I have a lengthy script which i have trimmed down for a test case as below.
more run.sh
#!/bin/bash
paths="allpath.txt"
while IFS= read -r loc
do
echo "Working on $loc"
startdir=$loc
find "$startdir" -type f \( ! -name "*.log*" ! -name "*.class*" \) -print |
while read file
do... (8 Replies)
Discussion started by: mohtashims
8 Replies
4. UNIX for Dummies Questions & Answers
Hi!
I have to run a very long script. I use a ssh client on Windows in order to connect to a HP-UX box. What I try to avoid is the possibility that the Windows machine reboots or loses the connection to the Unix machine before the script finishes.
Somebody told me that xterm could help me. He... (2 Replies)
Discussion started by: Ricardo Vargas
2 Replies
5. Ubuntu
You probably know the answer to this, because I know it exists.
I have super long filenames with md5 hashes and I sucks to type the whole hash in the console. Because... just because :P
What is the shortcut for selecting a file in the current directory? Like you get a sort of loop through the... (1 Reply)
Discussion started by: hellfire1
1 Replies
6. OS X (Apple)
Hello,
I was wondering how to change a user's Long Name through the terminal. I am writing a shell script to change some settings back to the default, and could not find how to do this (or even if you can do this).
I do not want to use applescript. (2 Replies)
Discussion started by: The Reepr
2 Replies
7. Shell Programming and Scripting
Hi,
I have written a tcsh script that reads 3 directories, lists the files within them and continues on to evaluate each file independently. When I run the script, it gets to a certain directory that contains ~250 files, when you echo the directory, there are 4332 characters. So, when I use the... (1 Reply)
Discussion started by: nixjennings
1 Replies
8. Shell Programming and Scripting
When running a ksh script, how would you time how long it took the script ran for?
Is there a command that can capture this? (1 Reply)
Discussion started by: Jazmania
1 Replies
9. UNIX for Dummies Questions & Answers
Is there a way to tell how long does a shell script(or a shell command)'s execution take? (4 Replies)
Discussion started by: meili100
4 Replies
10. Shell Programming and Scripting
Hello,
I wrote a script, which would ideally take about 480 hours to runs (It has to do a same thing 60 times.) But the problem is I have to use a VPN Client to get to the network before connecting to the machine. The Client automatically closes after 10 hours, closing my console and thus my... (3 Replies)
Discussion started by: sakya_trips
3 Replies
beep(3XCURSES) X/Open Curses Library Functions beep(3XCURSES)
NAME
beep, flash - activate audio-visual alarm
SYNOPSIS
cc [ flag... ] file... -I /usr/xpg4/include -L /usr/xpg4/lib
-R /usr/xpg4/lib -lcurses [ library... ]
c89 [ flag... ] file... -lcurses [ library... ]
#include <curses.h>
int beep(void);
int flash(void);
DESCRIPTION
The beep() and flash() functions produce an audio and visual alarm on the terminal, respectively. If the terminal has the capability,
beep() sounds a bell or beep and flash() flashes the screen. One alarm is substituted for another if the terminal does not support the
capability called (see terminfo(4) bel and flash capabilities). For example, a call to beep() for a terminal without that capability
results in a flash.
RETURN VALUES
These functions always return OK.
ERRORS
None.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Interface Stability |Standard |
+-----------------------------+-----------------------------+
|MT-Level |Unsafe |
+-----------------------------+-----------------------------+
SEE ALSO
libcurses(3XCURSES), terminfo(4), attributes(5), standards(5)
SunOS 5.10 5 Jun 2002 beep(3XCURSES)