bash / csh - 回显字符串“$#argv”和“#!/ bin / csh”(bash/csh - echo the strings “$#argv” and “#!/bin/csh”)
我正在尝试使用另一个
csh
脚本动态创建一个csh
,通过将一堆语句回显到另一个文件并运行它。但我无法回复像
"$#argv"
和"#!/bin/csh"
这样的字符串第一个始终由生成器csh解析为
#argv
值,shebang
只是给出一个错误,指出Event not found
。 有什么方法可以将这些回应到文件中吗?我很好用生成器
csh
代替bash
但输出脚本必须是csh,因为它使用了一大堆csh环境变量。PS - 我试过echo -e并尝试在任何地方添加反斜杠但是徒劳无功。 当使用单引号而不是double时,它也不起作用。
I am trying to create a
csh
on the fly with anothercsh
script byecho
ing a bunch of statements onto another file and running it.But I am not able to echo strings like
"$#argv"
and"#!/bin/csh"
The first is always parsed by the generator csh into its value of
#argv
and theshebang
just gives an error sayingEvent not found
. Is there any way that I could echo these to a file?I am ok with the generator
csh
to bebash
instead but the output script must be csh as it uses a whole bunch of csh environment variables.PS - I tried echo -e and tried adding backslashes wherever I can but in vain. It also did not work when using single quotes instead of double.
原文:https://stackoverflow.com/questions/42263202
最满意答案
在某些设备中,电子邮件客户端没有以mime类型打开应用程序作为text / html.so我改变如下。
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:mimeType="text/html"/> <data android:mimeType="text/plain"/> </intent-filter>
然后,电子邮件应用程序可以在列表中显示我的应用程序。但它将显示我们何时使用opne HTML / Text文件。
In some devices Email client is not opening the app with mime type as text/html.so i changed like follows.
<intent-filter> <action android:name="android.intent.action.VIEW" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> <data android:mimeType="text/html"/> <data android:mimeType="text/plain"/> </intent-filter>
Then email app is able to show my application in the list.but it will show when we tring to opne HTML/Text files.
相关问答
更多-
也许你正在寻找UIActivityViewController? http://nshipster.com/uiactivityviewcontroller/ Perhaps the UIActivityViewController is what you're looking for? http://nshipster.com/uiactivityviewcontroller/
-
在某些设备中,电子邮件客户端没有以mime类型打开应用程序作为text / html.so我改变如下。Outlook根本不处理HTML文件。 它需要是MSG或EML文件。 对于后一种选择,很容易创建一个带有HTML MIME部分的虚拟EML文件,该部分代表您的HTML数据。 Outlook does not handle HTML files at all. It needs to either be MSG or EML file. For the latter option, it is easy enough to create a dummy EML file with an HTML MIME p ...
从电子邮件中的链接打开Nativescript Android应用程序(Open a Nativescript Android app from a link in a email)[2022-01-13]
将此添加到main.ts import app = require("application"); import platform = require("platform"); declare var android: any; if(!!app.android){ app.android.on(app.AndroidApplication.activityResumedEvent, function (args) { console.log("Event: " + args. ...从Android和Iphone上的flex应用程序发送电子邮件(Send an email from a flex app on both android and Iphone)[2024-02-13]
仅供参考,以帮助扩展Action Script 3.0信息库。 我无法找到任何办法去做我上面提到的问题。 这是我用来发送带附件的电子邮件的方法。 https://code.google.com/p/airxmail/ http://flex.coltware.com/as3-flex-air/airxmail/ import com.coltware.airxmail.INetAddress; import com.coltware.airxmail.MailSender.SMTPSender; impor ...尝试这个 Intent intent=Intent.makeMainSelectorActivity(Intent.ACTION_MAIN, Intent.CATEGORY_APP_EMAIL); intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);//Min SDK 15 startActivity(intent); Try this Intent intent=Intent.makeMainSelectorAc ...您的问题非常类似于使用Android意图发送HTML邮件的问题。 你可以在那里看到一堆建议的解决方案。 我更喜欢mdaddy的Android特定版本的JavaMail API解决方案: http://www.jondev.net/articles/Sending_Emails_without_User_Intervention_%28no_Intents%29_in_Android 这样,您就不必打开(或依赖)任何外部邮件应用程序。 相反,您可以从应用程序中将电子邮件地址作为输入,并在幕后进行所有发送。 Y ...我尝试运行它我得到一个错误,上面写着:“没有应用程序可以执行此操作 这仅仅意味着没有应用程序来处理您发送的意图。 编辑 安装了电子邮件应用程序的事实并不意味着它得到了对message/rfc822有效负载的intent-filter (这就是为什么我建议使用text/plain ,至少为了测试)。 BTW:有一个简洁的工具, Intent Intercept可用于意图调配。 I try to run it I get an error that says: "No apps can perform this ...我最终使用MAPI来实现它。 我使用LoadLibrary和GetProcAddress来获取所需的函数。 我使用的代码是这样的: bool MailSender::Send(HWND hWndParent, LPCTSTR szSubject) { if (!m_hLib) return false; LPMAPISENDMAIL SendMail; SendMail = (LPMAPISENDMAIL) GetProcAddress(m_hLib, "MAPIS ...QR码网址编码电子邮件地址打开邮件客户端而不是打开网址(QR Code url encoding email address opening mail client instead of open url)[2022-02-19]
症状 并非所有智能手机应用都是平等的。 我使用扫描 - 二维码和条形码阅读器的iOS,它在我的浏览器窗口中提出该URL没问题。 您是否使用过多个应用进行了测试? 我认为您的应用可能正在查找QR码数据中的电子邮件地址,并根据某些条件确定数据的上下文。 解 尝试对电子邮件地址进行双重编码。 Google-visualization正在以user1@test.com身份收到user1%40test.com 。 如果您将其作为user1%2540test.com发送,那么它将正确编码URL,允许您的Web服务器接收 ...相关文章
更多- -bash: /bin/mv: Argument list too long的解决方案
- bash shell循环的疑问
- bash: scp: command not found的解决方法
- solr bin/snapinstaller 报 failed to connect to Solr server
- shell脚本的字符串截取
- shell脚本常规技巧
- shell自动化配置Hadoop配置文件示例
- 字符串应用之字符串编码转换
- java字符串内容的修改?
- java字符串解析
最新问答
更多- 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
- 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
- OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
- 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
- codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
- 在计算机拍照在哪里进入
- 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
- No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
- 单页应用程序:页面重新加载(Single Page Application: page reload)
- 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
- System.StackOverflow错误(System.StackOverflow error)
- KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
- 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
- android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
- TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
- 企业安全培训的各项内容
- 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
- C#类名中允许哪些字符?(What characters are allowed in C# class name?)
- NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
- 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
- 将多个行和可变行移动到列(moving multiple and variable rows to columns)
- 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
- 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
- Angular $资源不会改变方法(Angular $resource doesn't change method)
- 在Angular 5中不是一个函数(is not a function in Angular 5)
- 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
- 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
- 常见的python rpc和cli接口(Common python rpc and cli interface)
- Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
- 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)