12-04-2017
Do you have DOS line terminators <CR> (\r, 0x0D, ^M)? Does "creation of MacOS installation flash media" mean you're running everything on a MacOS? What's your OS and shell versions?
This User Gave Thanks to RudiC For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi!
i need to do a ksh script that uses a wile loop that is fed form below
while read line
do
some things
done < myfile
inside the while loop i need to read user input to ask the user what he wants to do, but "read" reads the file, and not the standard input
while read line
do
... (2 Replies)
Discussion started by: broli
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
The gcc compiler has warned about using gets(), so I've been trying my hand at getline.
Problem is that I've been able to read from a file, but what I really need is to read from a user's input.
I want to use getline like a scanf() command, but I can't figure what to substitute for the fp... (6 Replies)
Discussion started by: sdsd
6 Replies
3. UNIX for Dummies Questions & Answers
Hiii
I wanna a read a line of text from standard input. The user enter data like this way
name phone_no month1_salary month2_salary
that is user enter the name ,phone no and salary of 2 months in a single line by giving spaces. I wanna add the 3rd and 4th fields ...ie add both... (4 Replies)
Discussion started by: krishnampkkm
4 Replies
4. Shell Programming and Scripting
I need to write a bourne shell script (solaris 10) that accepts input from the user. The input will be a command- any command like ls/ pwd/ mv etc. After the input is read, the shell must execute the command supplied by the user.
I know we use read to play with user inputs. Just not sure how to... (2 Replies)
Discussion started by: PDManc
2 Replies
5. Shell Programming and Scripting
Hi
I am new to writing script and want to use a Bash Piped while-read and read from user input.
if something happens on server.log then do while loop or if something happend on user input then do while loop.
Pseudocode something like:
tail -n 3 -f server.log | while read serverline || read... (8 Replies)
Discussion started by: MyMorris
8 Replies
6. Homework & Coursework Questions
I need to Write a shell script that allows some system-administration tasks to be preformed automatically from a menu-driven interface. with automated following tasks:
Copy directory tree
Delete files or directories
Output Information (this part is done )
*Copy directory tree
The “Copy... (2 Replies)
Discussion started by: femchi
2 Replies
7. Shell Programming and Scripting
Below is a simple script to prompt for user input while suggesting an editable default value at the prompt:
shortname=user1
read -e -i $shortname -p "Please enter the username you would like to add: " input
USERNAME="${input:-$shortname}"
Please enter the username you would like to add:... (3 Replies)
Discussion started by: woodson2
3 Replies
8. Shell Programming and Scripting
I am creating a bash that uses perl . The below code closes before the input is entered. If I run the perl as a .pl it is fine. What am I doing wrong? Thank you :).
#!/bin/bash
cd 'C:\Users\cmccabe\Desktop\wget'
wget -O getCSV.txt http://xxx.xx.xxx.xxx/data/getCSV.csv
print... (4 Replies)
Discussion started by: cmccabe
4 Replies
9. Shell Programming and Scripting
Hi,
i am working on one automation , for that i have writing one shell program that take user input in "while read line" block. but read command is taking value that is readed by While block.
while read line; do
command 1;
command 2
echo -n "Do you want to continute > "
read rsp... (2 Replies)
Discussion started by: ranvijaidba
2 Replies
10. Shell Programming and Scripting
Hi,
This query is a part of a much more lengthy script.
I wish to look for all the files in a folder named "data" which in this case has two files i.e. plan.war and agent.properties. For all the files found under data I wish to ask the user as to where they wish copy the files to.
Below,... (14 Replies)
Discussion started by: mohtashims
14 Replies
LEARN ABOUT OSX
qtdefaults
qtdefaults(1) BSD General Commands Manual qtdefaults(1)
NAME
qtdefaults -- access the QuickTime Preferences
SYNOPSIS
qtdefaults read LegacyAudioCodecsEnabled
qtdefaults read LegacyVideoCodecs [<codec>]
qtdefaults read InstalledLegacyVideoCodecs
qtdefaults read TransportSettings
qtdefaults read MimeSettings
qtdefaults read MediaKeys [category]
qtdefaults reset DownloadCache
qtdefaults reset TransportSettings
qtdefaults reset MimeSettings
qtdefaults reset LegacyVideoCodecs
qtdefaults write LegacyAudioCodecsEnabled <yes | no>
qtdefaults write LegacyVideoCodecs <videocodec> <enabled | disabled>
qtdefaults write MediaKeys <category> <key>
qtdefaults write TransportSettings <protocol> <port>
qtdefaults delete MediaKeys <category> <key>
DESCRIPTION
qtdefaults allows users to read, write, reset and delete QuickTime user preferences from a command line shell. The commands are as follows:
read LegacyAudioCodecsEnabled
Prints whether legacy audio codecs are enabled for use in the export settings.
read LegacyVideoCodecs <videocodec>
Prints whether the specified legacy video codec is enabled for use in the export settings. It will print "enabled" if the codec is
enabled, "disabled" if disabled, or "unrecognized" if the codec is unknown.
read LegacyVideoCodecs
Prints list of legacy audio codecs currently enabled for use in the export settings.
read InstalledLegacyVideoCodecs
Prints out a list of all legacy video codecs installed in the current system. This list includes both enabled and disabled video
codecs. These codec identifiers are used with 'qtdefaults read LegacyVideoCodecs' and 'qtdefaults write LegacyVideoCodecs'.
read TransportSettings
Prints the transport settings being used by QuickTime for streaming media.
read MimeSettings
Prints the MIME types currently being handled by the QuickTime plugin.
read MediaKeys <category>
Prints the media keys being used by QuickTime to playback encrypted movies. The optional <category> parameter can be used to list
only the media keys associated with the specified category.
reset DownloadCache
Empties the cache being used by QuickTime to store downloaded content.
reset TransportSettings
Resets QuickTime to automatically determine the best protocol and port for streaming media.
reset MimeSettings
Resets QuickTime plug-in to handle the default MIME types.
reset LegacyVideoCodecs
Disables all QuickTime legacy video codecs.
write LegacyAudioCodecsEnabled <value>
A <value> of "yes" will enable the legacy audio codecs for use in the export settings and a <value> of "no" will disable them.
write LegacyVideoCodecs <videocodec> <value>
A <value> of "enabled" will enable the specified legacy video codec for use in the export settings and a <value> of "disabled" will
disable it.
write MediaKeys <category> <key>
Adds the media key specified by <category> and <key> values to the list of media keys used to playback encrypted movies.
write TransportSettings [protocol [port]]
Sets QuickTime streaming to use the transport settings as specified by <protocol> and <port>. Following are the recommended values
for <protocol> and <port>:
- To use HTTP, specify <protocol> = HTTP and <port> = 80
- To use UDP, specify <protocol> = UDP and either <port> = 554 or <port> = 7070
delete MediaKeys <category> <key>
Deletes the media key specified by <category> and <key> if it exists.
SEE ALSO
defaults(1)
MacOS X June 2, 2019 MacOS X