我的终端中没有bash命令,因此我尝试重置$ PATH并以某种方式将其弄乱了。任何帮助!
-bash: export: `/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/mysql/bin/': not a valid identifier
Roopalis-MacBook-Air:~ roopa$
Roopalis-MacBook-Air:~ roopa$ echo $PATH
Roopalis-MacBook-Air:~ roopa$
Roopalis-MacBook-Air:~ roopa$
答案 0 :(得分:0)
尝试在#r "System.Runtime"
#r "System.Threading.Tasks"
using System;
using System.Net;
using System.Threading.Tasks;
using Newtonsoft.Json;
using Microsoft.Azure;
using Microsoft.Azure.Management.DataFactory;
using Microsoft.Azure.Management.DataFactory.Models;
using Microsoft.IdentityModel.Clients.ActiveDirectory;
using Microsoft.Rest;
public static void Run(TimerInfo myTimer, TraceWriter log)
{
log.Info($"C# Timer trigger function executed at: {DateTime.Now}");
/*...All variable definations...*/
var authenticationContext = new AuthenticationContext(activeDirectoryEndpoint + activeDirectoryTenantld);
ClientCredential credential = new ClientCredential(clientld, clientSecret);
AuthenticationResult result = authenticationContext.AcquireTokenAsync(windowsManagementUri, credential).Result;
ServiceClientCredentials cred = new TokenCredentials(result.AccessToken);
var client = new DataFactoryManagementClient(cred) { SubscriptionId = subscriptionId };
Dictionary<string, object> arguments = new Dictionary<string, object>
{
{ "bufferdays", 10 },
{"TimeToCopy", 20 }
};
CreateRunResponse runResponse = client.Pipelines.CreateRunWithHttpMessagesAsync(resourceGroupName, dataFactoryName, pipelineName,arguments).Result.Body;
}
中添加路径:
.bash_profile